public class RJPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
RJPanel()
Creates a new RJPanel.
|
Modifier and Type | Method and Description |
---|---|
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 a JButton (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 a JComboBox (convenience).
|
javax.swing.JComponent |
getComponent(java.lang.String aName)
Returns the named child component as a JComponent (convenience).
|
RMDataSource |
getDataSource()
Returns the datasource for the panel.
|
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 a JLabel (convenience).
|
RJLayout |
getLayoutRB()
Returns this panels layout manager as an RJLayout.
|
javax.swing.JList |
getList(java.lang.String aName)
Returns the named child component as a JList (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 a JMenu (convenience).
|
javax.swing.JMenuItem |
getMenuItem(java.lang.String aName)
Returns the named child component as a 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 a JPanel (convenience).
|
java.awt.Dimension |
getPreferredSize()
Overrides component method to indicate that preferred size is current size.
|
javax.swing.JProgressBar |
getProgressBar(java.lang.String aName)
Returns the named child component as a JProgressBar (convenience).
|
javax.swing.JScrollPane |
getScrollPane(java.lang.String aName)
Returns the named child component as a JScrollPane (convenience).
|
javax.swing.JSlider |
getSlider(java.lang.String aName)
Returns the named child component as a JSlider (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 a JTabbedPane (convenience).
|
javax.swing.JTable |
getTable(java.lang.String aName)
Returns the named child component as a JTable (convenience).
|
javax.swing.JTextArea |
getTextArea(java.lang.String aName)
Returns the named child component as a JTextArea (convenience).
|
javax.swing.JTextField |
getTextField(java.lang.String aName)
Returns the named child component as a JTextField (convenience).
|
javax.swing.JToggleButton |
getToggleButton(java.lang.String aName)
Returns the named child component as a JToggleButton (convenience).
|
javax.swing.JTree |
getTree(java.lang.String aName)
Returns the named child component as a JTree (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()
Obsolete - make this go soon!.
|
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 |
isWindowAlwaysOnTop()
Returns whether the window associated with this panel is always on top.
|
boolean |
isWindowHideOnDeactivate()
Returns whether the window associated with this panel will hide on deactivate.
|
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.
|
boolean |
isWindowVisible()
Returns whether window associated with this panel is visible.
|
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(RMDataSource aDataSource)
Sets the datasource for the panel.
|
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 |
setWindowAlwaysOnTop(boolean aValue)
Sets whether the window associated with this panel is always on top.
|
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 |
setWindowHideOnDeactivate(boolean aValue)
Sets whether the window associated with this panel will hide on deacativate.
|
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.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public java.lang.Object getOwner()
public void setOwner(java.lang.Object anOwner)
public RJPanel getMaster()
public void setMaster(RJPanel aMaster)
public javax.swing.JComponent get(java.lang.String aName)
public javax.swing.JComponent getComponent(java.lang.String aName)
public RJPanel getPanel(java.lang.String aName)
public javax.swing.JButton getButton(java.lang.String aName)
public javax.swing.JComboBox getComboBox(java.lang.String aName)
public javax.swing.JLabel getLabel(java.lang.String aName)
public javax.swing.JList getList(java.lang.String aName)
public javax.swing.JMenu getMenu(java.lang.String aName)
public javax.swing.JMenuItem getMenuItem(java.lang.String aName)
public javax.swing.JProgressBar getProgressBar(java.lang.String aName)
public javax.swing.JSlider getSlider(java.lang.String aName)
public javax.swing.JScrollPane getScrollPane(java.lang.String aName)
public javax.swing.JTabbedPane getTabbedPane(java.lang.String aName)
public javax.swing.JTable getTable(java.lang.String aName)
public javax.swing.JTextField getTextField(java.lang.String aName)
public javax.swing.JTextArea getTextArea(java.lang.String aName)
public javax.swing.JToggleButton getToggleButton(java.lang.String aName)
public javax.swing.JTree getTree(java.lang.String aName)
public RJLayout getLayoutRB()
public int getBinderCount()
public RBListBinder getBinder(int anIndex)
public RBListBinder getBinder(java.lang.String aName)
public void addBinder(RBListBinder aBinder)
public void removeBinder(RBListBinder aBinder)
public javax.swing.ButtonGroup getButtonGroup(java.lang.String aName)
public java.util.Map getButtonGroups()
public boolean equals(java.lang.Object anObj, java.lang.String aName)
public java.lang.Object getValue(java.lang.String aName)
public java.lang.Object getValue(java.lang.Object anObj)
public void setValue(java.lang.String aName, java.lang.Object aValue)
public void setValue(java.lang.Object anObj, java.lang.Object aValue)
public java.lang.String getStringValue(java.lang.String aName)
public java.lang.String getStringValue(java.lang.Object anObj)
public void setValue(java.lang.String aName, java.lang.String aValue)
public void setValue(java.lang.Object anObj, java.lang.String aValue)
public java.lang.Boolean getBooleanValue(java.lang.String aName)
public java.lang.Boolean getBooleanValue(java.lang.Object anObj)
public void setValue(java.lang.String aName, java.lang.Boolean aValue)
public void setValue(java.lang.Object anObj, java.lang.Boolean aValue)
public boolean getBoolValue(java.lang.String aName)
public boolean getBoolValue(java.lang.Object anObj)
public void setValue(java.lang.String aName, boolean aValue)
public void setValue(java.lang.Object anObj, boolean aValue)
public int getIntValue(java.lang.String aName)
public int getIntValue(java.lang.Object anObj)
public void setValue(java.lang.String aName, int aValue)
public void setValue(java.lang.Object anObj, int aValue)
public float getFloatValue(java.lang.String aName)
public float getFloatValue(java.lang.Object anObj)
public void setValue(java.lang.String aName, float aValue)
public void setValue(java.lang.Object anObj, float aValue)
public java.awt.Color getColorValue(java.lang.String aName)
public java.awt.Color getColorValue(java.lang.Object anObj)
public void setValue(java.lang.String aName, java.awt.Color aValue)
public void setValue(java.lang.Object anObj, java.awt.Color aValue)
public boolean getValueIsAdjusting(java.lang.String aName)
public boolean getValueIsAdjusting(java.lang.Object anObj)
public void setEnabled(java.lang.String aName, boolean aValue)
public void setEnabled(javax.swing.JComponent aComponent, boolean aValue)
public void setEnabled(boolean aFlag)
setEnabled
in class javax.swing.JComponent
public RJPanel pack()
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
public java.awt.Dimension getMaximumSize()
getMaximumSize
in class javax.swing.JComponent
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class javax.swing.JComponent
public void setMinimumSize(java.awt.Dimension d)
setMinimumSize
in class javax.swing.JComponent
public void setMaximumSize(java.awt.Dimension d)
setMaximumSize
in class javax.swing.JComponent
public java.awt.Dimension getClippedSize(int w, int h)
public void setBounds(java.awt.Rectangle r)
setBounds
in class java.awt.Component
public void setBounds(int x, int y, int w, int h)
setBounds
in class java.awt.Component
public void setSize(java.awt.Dimension d)
setSize
in class java.awt.Component
public void installResizeHandler()
public java.awt.Window getWindow()
public java.lang.String getWindowClassName()
public void setWindowClassName(java.lang.String aName)
public java.lang.Class getWindowClass()
public java.lang.String getWindowTitle()
public void setWindowTitle(java.lang.String aValue)
public boolean isWindowResizable()
public void setWindowResizable(boolean aValue)
public javax.swing.JMenuBar getWindowMenuBar()
public void setWindowMenuBar(javax.swing.JMenuBar aMenuBar)
public boolean isWindowAlwaysOnTop()
public void setWindowAlwaysOnTop(boolean aValue)
public boolean isWindowHideOnDeactivate()
public void setWindowHideOnDeactivate(boolean aValue)
public boolean isWindowModal()
public void setWindowModal(boolean aValue)
public java.awt.Window getWindowOwner()
public void setWindowOwner(java.awt.Window aWindowOwner)
public java.lang.String getWindowDefaultButton()
public void setWindowDefaultButton(java.lang.String aName)
public boolean isWindowVisible()
public void setWindowVisible(boolean aValue)
public boolean getWindowIsVisible()
public void setWindowVisible(int x, int y, byte aCorner, java.lang.String fsaveName)
public void windowDispose()
public RMDataSource getDataSource()
public void setDataSource(RMDataSource aDataSource)