Ribs API

com.ribs
Class RJPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.ribs.RJPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
RJSwitchPane

public class RJPanel
extends javax.swing.JPanel

This class is the root of all Rib files and the unified point of access for all of its child components (and, optionally, it's window). Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill .

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
RJPanel()
          Creates a new RJPanel.
 
Method Summary
 void addBinder(RBListBinder aBinder)
          Adds a binder to the panel.
 boolean equals(java.lang.Object anObj, java.lang.String aName)
          Returns whether a given component matches a named component.
 javax.swing.JComponent get(java.lang.String aName)
          Get the specific child component with the given name.
 RBListBinder getBinder(int anIndex)
          Returns the specific binder at the given index.
 RBListBinder getBinder(java.lang.String aName)
          Returns the named binder for this panel.
 int getBinderCount()
          Returns the number of binders for this panel.
 java.lang.Boolean getBooleanValue(java.lang.Object anObj)
          Unified GetValue to get a Boolean value from a given component.
 java.lang.Boolean getBooleanValue(java.lang.String aName)
          Unified GetValue to get a Boolean value from a named component.
 boolean getBoolValue(java.lang.Object anObj)
          Unified GetValue to get a boolean value from a given component.
 boolean getBoolValue(java.lang.String aName)
          Unified GetValue to get a boolean value from a named component.
 javax.swing.JButton getButton(java.lang.String aName)
          Returns the named child component as an RJButton (convenience).
 javax.swing.ButtonGroup getButtonGroup(java.lang.String aName)
          Return the button group in this table for the given name (creating if needed).
 java.util.Map getButtonGroups()
          Returns the Map of all named buttonGroups in the panel.
 java.awt.Dimension getClippedSize(int w, int h)
          A utility method to constrain values to within min & max values
 java.awt.Color getColorValue(java.lang.Object anObj)
          Unified accessor to return the color from a given component.
 java.awt.Color getColorValue(java.lang.String aName)
          Unified accessor to return the color from a given named component.
 javax.swing.JComboBox getComboBox(java.lang.String aName)
          Returns the named child component as an RJComboBox (convenience).
 javax.swing.JComponent getComponent(java.lang.String aName)
          Returns the named child component as an JComponent (convenience).
 com.reportmill.base.RMDataSource getDataSource()
           
 float getFloatValue(java.lang.Object anObj)
          Unified GetValue to get a float value from a given component.
 float getFloatValue(java.lang.String aName)
          Unified GetValue to get a float value from a named component.
 int getIntValue(java.lang.Object anObj)
          Unified GetValue to get an int value from a given component.
 int getIntValue(java.lang.String aName)
          Unified GetValue to get an int value from a named component.
 javax.swing.JLabel getLabel(java.lang.String aName)
          Returns the named child component as an RJLabel (convenience).
 javax.swing.JList getList(java.lang.String aName)
          Returns the named child component as an RJList (convenience).
 RJPanel getMaster()
          Returns the top level component of the rib file that contained this component.
 java.awt.Dimension getMaximumSize()
          Overriden to handle max the max size, if it's been set.
 javax.swing.JMenu getMenu(java.lang.String aName)
          Returns the named child component as an RJMenu (convenience).
 javax.swing.JMenuItem getMenuItem(java.lang.String aName)
          Returns the named child component as an JMenuItem (convenience).
 java.awt.Dimension getMinimumSize()
          Overriden to handle max the min size, if it's been set.
 java.lang.Object getOwner()
          Returns the object that loaded this component.
 RJPanel getPanel(java.lang.String aName)
          Returns the named child component as an RJPanel (convenience).
 java.awt.Dimension getPreferredSize()
          Overrides component method to indicate that preferred size is current size.
 javax.swing.JScrollPane getScrollPane(java.lang.String aName)
          Returns the named child component as an RJScrollPane (convenience).
 javax.swing.JSlider getSlider(java.lang.String aName)
          Returns the named child component as an RJSlider (convenience).
 java.lang.String getStringValue(java.lang.Object anObj)
          Unified GetValue to get a String value from a given component.
 java.lang.String getStringValue(java.lang.String aName)
          Unified GetValue to get a String value from a named component.
 javax.swing.JTabbedPane getTabbedPane(java.lang.String aName)
          Returns the named child component as an JTabbedPane (convenience).
 javax.swing.JTable getTable(java.lang.String aName)
          Returns the named child component as an RJTable (convenience).
 javax.swing.JTextArea getTextArea(java.lang.String aName)
          Returns the named child component as an RJTextArea (convenience).
 javax.swing.JTextField getTextField(java.lang.String aName)
          Returns the named child component as an RJTextField (convenience).
 javax.swing.JToggleButton getToggleButton(java.lang.String aName)
          Returns the named child component as an RJToggleButton (convenience).
 javax.swing.JTree getTree(java.lang.String aName)
          Returns the named child component as an RJTree (convenience).
 java.lang.Object getValue(java.lang.Object anObj)
          Unified GetValue to get an Object value from a given component.
 java.lang.Object getValue(java.lang.String aName)
          Unified GetValue to get an Object value from a named component.
 boolean getValueIsAdjusting(java.lang.Object anObj)
          Unified GetValueIsAdjusting to get isAdjusting state from a given component.
 boolean getValueIsAdjusting(java.lang.String aName)
          Unified GetValueIsAdjusting to get isAdjusting state from a named component.
 java.awt.Window getWindow()
          Returns the window associated with this panel, creating it if necessary.
 java.lang.Class getWindowClass()
          Returns the class of the window associated with this panel.
 java.lang.String getWindowClassName()
          Returns the class name of the window associated with this panel.
 java.lang.String getWindowDefaultButton()
          Returns the name of the default button associated with this panel's window.
 boolean getWindowIsVisible()
          Returns whether window associated with this panel is visible.
 javax.swing.JMenuBar getWindowMenuBar()
          Returns the menu bar associated with this panel's window.
 java.awt.Window getWindowOwner()
          Returns the owner-window or parent-window associated with this panel's window, such that this panel's window is the child of that window.
 java.lang.String getWindowTitle()
          Returns the title of the window associated with this panel.
 void installResizeHandler()
          Call this method to set up a listener which will honor the min & max sizes.
 boolean isWindowModal()
          Returns the modal mode of the window associated with this panel.
 boolean isWindowResizable()
          Returns whether the window associated with this panel is resizable.
 RJPanel pack()
          This method calculates how much bigger the panel needs to be to accommodate the preferred size of all UI components and grows the panel and all controls proportionally by that amount.
 void removeBinder(RBListBinder aBinder)
          Removes a binder from the panel.
 void setBounds(int x, int y, int w, int h)
          Overridden to handle constraints
 void setBounds(java.awt.Rectangle r)
          Overridden to handle constraints
 void setDataSource(com.reportmill.base.RMDataSource aDataSource)
           
 void setEnabled(boolean aFlag)
          Overrides JComponent method to propagate to all children (which is a quick way to disable an entire panel).
 void setEnabled(javax.swing.JComponent aComponent, boolean aValue)
          Calls set enabled on referenced child.
 void setEnabled(java.lang.String aName, boolean aValue)
          Calls set enabled on named child.
 void setMaster(RJPanel aMaster)
          Sets the top level component of the rib file that contained this component.
 void setMaximumSize(java.awt.Dimension d)
          Overridden so that panel keeps private copies of min/max safely around.
 void setMinimumSize(java.awt.Dimension d)
          Overridden so that panel keeps private copies of min/max safely around.
 void setOwner(java.lang.Object anOwner)
          Sets the object that loaded this component.
 void setSize(java.awt.Dimension d)
          Overridden to handle constraints
 void setValue(java.lang.Object anObj, boolean aValue)
          Unified setValue to set a boolean value in a given component.
 void setValue(java.lang.Object anObj, java.lang.Boolean aValue)
          Unified setValue to set a Boolean value in a given component.
 void setValue(java.lang.Object anObj, java.awt.Color aValue)
          Unified setValue to set a Color value in a given component.
 void setValue(java.lang.Object anObj, float aValue)
          Unified setValue to set an Object value in a given component.
 void setValue(java.lang.Object anObj, int aValue)
          Unified setValue to set an int value in a given component.
 void setValue(java.lang.Object anObj, java.lang.Object aValue)
          Unified setValue to set an Object value in a given component.
 void setValue(java.lang.Object anObj, java.lang.String aValue)
          Unified setValue to set a String value in a given component.
 void setValue(java.lang.String aName, boolean aValue)
          Unified setValue to set a boolean value in a named component.
 void setValue(java.lang.String aName, java.lang.Boolean aValue)
          Unified setValue to set a Boolean value in a named component.
 void setValue(java.lang.String aName, java.awt.Color aValue)
          Unified setValue to set a Color value in a named component.
 void setValue(java.lang.String aName, float aValue)
          Unified setValue to set a float value in a named component.
 void setValue(java.lang.String aName, int aValue)
          Unified setValue to set an int value in a named component.
 void setValue(java.lang.String aName, java.lang.Object aValue)
          Unified setValue to set an Object value in a named component.
 void setValue(java.lang.String aName, java.lang.String aValue)
          Unified setValue to set a String value in a named component.
 void setWindowClassName(java.lang.String aName)
          Sets the class name of the window associated with this panel.
 void setWindowDefaultButton(java.lang.String aName)
          Sets the name of the default button associated with this panel's window.
 void setWindowMenuBar(javax.swing.JMenuBar aMenuBar)
          Sets the menu bar associated with this panel's window.
 void setWindowModal(boolean aValue)
          Sets the modal mode of the window associated with this panel (defaults to false).
 void setWindowOwner(java.awt.Window aWindowOwner)
          Sets the owner-window/parent-window associated with this panel's window.
 void setWindowResizable(boolean aValue)
          Sets whether the window associated with this panel is resizable (default to true).
 void setWindowTitle(java.lang.String aValue)
          Sets the title of the window associated with this panel.
 void setWindowVisible(boolean aValue)
          This method sets the window associated with this panel to be visible or invisible.
 void setWindowVisible(int x, int y, byte aCorner, java.lang.String fsaveName)
          This method set the window associated with this panel to be visible at some given x and y away from a given corner.
 void windowDispose()
          This method disposes the window associated with this panel.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RJPanel

public RJPanel()
Creates a new RJPanel.

Method Detail

getOwner

public java.lang.Object getOwner()
Returns the object that loaded this component.


setOwner

public void setOwner(java.lang.Object anOwner)
Sets the object that loaded this component.


getMaster

public RJPanel getMaster()
Returns the top level component of the rib file that contained this component.


setMaster

public void setMaster(RJPanel aMaster)
Sets the top level component of the rib file that contained this component.


get

public javax.swing.JComponent get(java.lang.String aName)
Get the specific child component with the given name.


getComponent

public javax.swing.JComponent getComponent(java.lang.String aName)
Returns the named child component as an JComponent (convenience).


getPanel

public RJPanel getPanel(java.lang.String aName)
Returns the named child component as an RJPanel (convenience).


getButton

public javax.swing.JButton getButton(java.lang.String aName)
Returns the named child component as an RJButton (convenience).


getComboBox

public javax.swing.JComboBox getComboBox(java.lang.String aName)
Returns the named child component as an RJComboBox (convenience).


getLabel

public javax.swing.JLabel getLabel(java.lang.String aName)
Returns the named child component as an RJLabel (convenience).


getList

public javax.swing.JList getList(java.lang.String aName)
Returns the named child component as an RJList (convenience).


getMenu

public javax.swing.JMenu getMenu(java.lang.String aName)
Returns the named child component as an RJMenu (convenience).


getMenuItem

public javax.swing.JMenuItem getMenuItem(java.lang.String aName)
Returns the named child component as an JMenuItem (convenience).


getSlider

public javax.swing.JSlider getSlider(java.lang.String aName)
Returns the named child component as an RJSlider (convenience).


getScrollPane

public javax.swing.JScrollPane getScrollPane(java.lang.String aName)
Returns the named child component as an RJScrollPane (convenience).


getTabbedPane

public javax.swing.JTabbedPane getTabbedPane(java.lang.String aName)
Returns the named child component as an JTabbedPane (convenience).


getTable

public javax.swing.JTable getTable(java.lang.String aName)
Returns the named child component as an RJTable (convenience).


getTextField

public javax.swing.JTextField getTextField(java.lang.String aName)
Returns the named child component as an RJTextField (convenience).


getTextArea

public javax.swing.JTextArea getTextArea(java.lang.String aName)
Returns the named child component as an RJTextArea (convenience).


getToggleButton

public javax.swing.JToggleButton getToggleButton(java.lang.String aName)
Returns the named child component as an RJToggleButton (convenience).


getTree

public javax.swing.JTree getTree(java.lang.String aName)
Returns the named child component as an RJTree (convenience).


getBinderCount

public int getBinderCount()
Returns the number of binders for this panel.


getBinder

public RBListBinder getBinder(int anIndex)
Returns the specific binder at the given index.


getBinder

public RBListBinder getBinder(java.lang.String aName)
Returns the named binder for this panel.


addBinder

public void addBinder(RBListBinder aBinder)
Adds a binder to the panel.


removeBinder

public void removeBinder(RBListBinder aBinder)
Removes a binder from the panel.


getButtonGroup

public javax.swing.ButtonGroup getButtonGroup(java.lang.String aName)
Return the button group in this table for the given name (creating if needed).


getButtonGroups

public java.util.Map getButtonGroups()
Returns the Map of all named buttonGroups in the panel.


equals

public boolean equals(java.lang.Object anObj,
                      java.lang.String aName)
Returns whether a given component matches a named component.


getValue

public java.lang.Object getValue(java.lang.String aName)
Unified GetValue to get an Object value from a named component.


getValue

public java.lang.Object getValue(java.lang.Object anObj)
Unified GetValue to get an Object value from a given component.


setValue

public void setValue(java.lang.String aName,
                     java.lang.Object aValue)
Unified setValue to set an Object value in a named component.


setValue

public void setValue(java.lang.Object anObj,
                     java.lang.Object aValue)
Unified setValue to set an Object value in a given component.


getStringValue

public java.lang.String getStringValue(java.lang.String aName)
Unified GetValue to get a String value from a named component.


getStringValue

public java.lang.String getStringValue(java.lang.Object anObj)
Unified GetValue to get a String value from a given component.


setValue

public void setValue(java.lang.String aName,
                     java.lang.String aValue)
Unified setValue to set a String value in a named component.


setValue

public void setValue(java.lang.Object anObj,
                     java.lang.String aValue)
Unified setValue to set a String value in a given component.


getBooleanValue

public java.lang.Boolean getBooleanValue(java.lang.String aName)
Unified GetValue to get a Boolean value from a named component.


getBooleanValue

public java.lang.Boolean getBooleanValue(java.lang.Object anObj)
Unified GetValue to get a Boolean value from a given component.


setValue

public void setValue(java.lang.String aName,
                     java.lang.Boolean aValue)
Unified setValue to set a Boolean value in a named component.


setValue

public void setValue(java.lang.Object anObj,
                     java.lang.Boolean aValue)
Unified setValue to set a Boolean value in a given component.


getBoolValue

public boolean getBoolValue(java.lang.String aName)
Unified GetValue to get a boolean value from a named component.


getBoolValue

public boolean getBoolValue(java.lang.Object anObj)
Unified GetValue to get a boolean value from a given component.


setValue

public void setValue(java.lang.String aName,
                     boolean aValue)
Unified setValue to set a boolean value in a named component.


setValue

public void setValue(java.lang.Object anObj,
                     boolean aValue)
Unified setValue to set a boolean value in a given component.


getIntValue

public int getIntValue(java.lang.String aName)
Unified GetValue to get an int value from a named component.


getIntValue

public int getIntValue(java.lang.Object anObj)
Unified GetValue to get an int value from a given component.


setValue

public void setValue(java.lang.String aName,
                     int aValue)
Unified setValue to set an int value in a named component.


setValue

public void setValue(java.lang.Object anObj,
                     int aValue)
Unified setValue to set an int value in a given component.


getFloatValue

public float getFloatValue(java.lang.String aName)
Unified GetValue to get a float value from a named component.


getFloatValue

public float getFloatValue(java.lang.Object anObj)
Unified GetValue to get a float value from a given component.


setValue

public void setValue(java.lang.String aName,
                     float aValue)
Unified setValue to set a float value in a named component.


setValue

public void setValue(java.lang.Object anObj,
                     float aValue)
Unified setValue to set an Object value in a given component.


getColorValue

public java.awt.Color getColorValue(java.lang.String aName)
Unified accessor to return the color from a given named component.


getColorValue

public java.awt.Color getColorValue(java.lang.Object anObj)
Unified accessor to return the color from a given component.


setValue

public void setValue(java.lang.String aName,
                     java.awt.Color aValue)
Unified setValue to set a Color value in a named component.


setValue

public void setValue(java.lang.Object anObj,
                     java.awt.Color aValue)
Unified setValue to set a Color value in a given component.


getValueIsAdjusting

public boolean getValueIsAdjusting(java.lang.String aName)
Unified GetValueIsAdjusting to get isAdjusting state from a named component.


getValueIsAdjusting

public boolean getValueIsAdjusting(java.lang.Object anObj)
Unified GetValueIsAdjusting to get isAdjusting state from a given component.


setEnabled

public void setEnabled(java.lang.String aName,
                       boolean aValue)
Calls set enabled on named child.


setEnabled

public void setEnabled(javax.swing.JComponent aComponent,
                       boolean aValue)
Calls set enabled on referenced child.


setEnabled

public void setEnabled(boolean aFlag)
Overrides JComponent method to propagate to all children (which is a quick way to disable an entire panel).


pack

public RJPanel pack()
This method calculates how much bigger the panel needs to be to accommodate the preferred size of all UI components and grows the panel and all controls proportionally by that amount.


getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides component method to indicate that preferred size is current size.


getMaximumSize

public java.awt.Dimension getMaximumSize()
Overriden to handle max the max size, if it's been set.


getMinimumSize

public java.awt.Dimension getMinimumSize()
Overriden to handle max the min size, if it's been set.


setMinimumSize

public void setMinimumSize(java.awt.Dimension d)
Overridden so that panel keeps private copies of min/max safely around.


setMaximumSize

public void setMaximumSize(java.awt.Dimension d)
Overridden so that panel keeps private copies of min/max safely around.


getClippedSize

public java.awt.Dimension getClippedSize(int w,
                                         int h)
A utility method to constrain values to within min & max values


setBounds

public void setBounds(java.awt.Rectangle r)
Overridden to handle constraints


setBounds

public void setBounds(int x,
                      int y,
                      int w,
                      int h)
Overridden to handle constraints


setSize

public void setSize(java.awt.Dimension d)
Overridden to handle constraints


installResizeHandler

public void installResizeHandler()
Call this method to set up a listener which will honor the min & max sizes.


getWindow

public java.awt.Window getWindow()
Returns the window associated with this panel, creating it if necessary.


getWindowClassName

public java.lang.String getWindowClassName()
Returns the class name of the window associated with this panel.


setWindowClassName

public void setWindowClassName(java.lang.String aName)
Sets the class name of the window associated with this panel.


getWindowClass

public java.lang.Class getWindowClass()
Returns the class of the window associated with this panel.


getWindowTitle

public java.lang.String getWindowTitle()
Returns the title of the window associated with this panel.


setWindowTitle

public void setWindowTitle(java.lang.String aValue)
Sets the title of the window associated with this panel.


getWindowOwner

public java.awt.Window getWindowOwner()
Returns the owner-window or parent-window associated with this panel's window, such that this panel's window is the child of that window. This gives the child window the behavior of always floating above the parent, which can be useful for dialogs or inspectors.


setWindowOwner

public void setWindowOwner(java.awt.Window aWindowOwner)
Sets the owner-window/parent-window associated with this panel's window.


isWindowResizable

public boolean isWindowResizable()
Returns whether the window associated with this panel is resizable.


setWindowResizable

public void setWindowResizable(boolean aValue)
Sets whether the window associated with this panel is resizable (default to true).


getWindowMenuBar

public javax.swing.JMenuBar getWindowMenuBar()
Returns the menu bar associated with this panel's window.


setWindowMenuBar

public void setWindowMenuBar(javax.swing.JMenuBar aMenuBar)
Sets the menu bar associated with this panel's window.


isWindowModal

public boolean isWindowModal()
Returns the modal mode of the window associated with this panel.


setWindowModal

public void setWindowModal(boolean aValue)
Sets the modal mode of the window associated with this panel (defaults to false).


getWindowDefaultButton

public java.lang.String getWindowDefaultButton()
Returns the name of the default button associated with this panel's window.


setWindowDefaultButton

public void setWindowDefaultButton(java.lang.String aName)
Sets the name of the default button associated with this panel's window.


getWindowIsVisible

public boolean getWindowIsVisible()
Returns whether window associated with this panel is visible.


setWindowVisible

public void setWindowVisible(boolean aValue)
This method sets the window associated with this panel to be visible or invisible.


setWindowVisible

public void setWindowVisible(int x,
                             int y,
                             byte aCorner,
                             java.lang.String fsaveName)
This method set the window associated with this panel to be visible at some given x and y away from a given corner. It also allows you to provide a "frame save name" which causes the frame's location and size to be saved between sessions (in which case it will override the default position provided).


windowDispose

public void windowDispose()
This method disposes the window associated with this panel.


getDataSource

public com.reportmill.base.RMDataSource getDataSource()

setDataSource

public void setDataSource(com.reportmill.base.RMDataSource aDataSource)

Ribs API.