Package com.ribs
Class RJPanel
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- com.ribs.RJPanel
-
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,javax.accessibility.Accessible
- Direct Known Subclasses:
AnimScript.AnimScriptUI,DocumentTool.PageSizeView,Gallery.GalleryUI,LabelTool.LabelToolUI,RBTester.GlassPane,RJSwitchPane,ShapeFillsShadow.OffsetPanel
public class RJPanel extends javax.swing.JPanelThis 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/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description RJPanel()Creates a new RJPanel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBinder(RBListBinder aBinder)Adds a binder to the panel.booleanequals(java.lang.Object anObj, java.lang.String aName)Returns whether a given component matches a named component.javax.swing.JComponentget(java.lang.String aName)Get the specific child component with the given name.RBListBindergetBinder(int anIndex)Returns the specific binder at the given index.RBListBindergetBinder(java.lang.String aName)Returns the named binder for this panel.intgetBinderCount()Returns the number of binders for this panel.java.lang.BooleangetBooleanValue(java.lang.Object anObj)Unified GetValue to get a Boolean value from a given component.java.lang.BooleangetBooleanValue(java.lang.String aName)Unified GetValue to get a Boolean value from a named component.booleangetBoolValue(java.lang.Object anObj)Unified GetValue to get a boolean value from a given component.booleangetBoolValue(java.lang.String aName)Unified GetValue to get a boolean value from a named component.javax.swing.JButtongetButton(java.lang.String aName)Returns the named child component as a JButton (convenience).javax.swing.ButtonGroupgetButtonGroup(java.lang.String aName)Return the button group in this table for the given name (creating if needed).java.util.MapgetButtonGroups()Returns the Map of all named buttonGroups in the panel.java.awt.DimensiongetClippedSize(int w, int h)A utility method to constrain values to within min & max valuesjava.awt.ColorgetColorValue(java.lang.Object anObj)Unified accessor to return the color from a given component.java.awt.ColorgetColorValue(java.lang.String aName)Unified accessor to return the color from a given named component.javax.swing.JComboBoxgetComboBox(java.lang.String aName)Returns the named child component as a JComboBox (convenience).javax.swing.JComponentgetComponent(java.lang.String aName)Returns the named child component as a JComponent (convenience).RMDataSourcegetDataSource()Returns the datasource for the panel.floatgetFloatValue(java.lang.Object anObj)Unified GetValue to get a float value from a given component.floatgetFloatValue(java.lang.String aName)Unified GetValue to get a float value from a named component.intgetIntValue(java.lang.Object anObj)Unified GetValue to get an int value from a given component.intgetIntValue(java.lang.String aName)Unified GetValue to get an int value from a named component.javax.swing.JLabelgetLabel(java.lang.String aName)Returns the named child component as a JLabel (convenience).RJLayoutgetLayoutRB()Returns this panels layout manager as an RJLayout.javax.swing.JListgetList(java.lang.String aName)Returns the named child component as a JList (convenience).RJPanelgetMaster()Returns the top level component of the rib file that contained this component.java.awt.DimensiongetMaximumSize()Overriden to handle max the max size, if it's been set.javax.swing.JMenugetMenu(java.lang.String aName)Returns the named child component as a JMenu (convenience).javax.swing.JMenuItemgetMenuItem(java.lang.String aName)Returns the named child component as a JMenuItem (convenience).java.awt.DimensiongetMinimumSize()Overriden to handle max the min size, if it's been set.java.lang.ObjectgetOwner()Returns the object that loaded this component.RJPanelgetPanel(java.lang.String aName)Returns the named child component as a JPanel (convenience).java.awt.DimensiongetPreferredSize()Overrides component method to indicate that preferred size is current size.javax.swing.JProgressBargetProgressBar(java.lang.String aName)Returns the named child component as a JProgressBar (convenience).javax.swing.JScrollPanegetScrollPane(java.lang.String aName)Returns the named child component as a JScrollPane (convenience).javax.swing.JSlidergetSlider(java.lang.String aName)Returns the named child component as a JSlider (convenience).java.lang.StringgetStringValue(java.lang.Object anObj)Unified GetValue to get a String value from a given component.java.lang.StringgetStringValue(java.lang.String aName)Unified GetValue to get a String value from a named component.javax.swing.JTabbedPanegetTabbedPane(java.lang.String aName)Returns the named child component as a JTabbedPane (convenience).javax.swing.JTablegetTable(java.lang.String aName)Returns the named child component as a JTable (convenience).javax.swing.JTextAreagetTextArea(java.lang.String aName)Returns the named child component as a JTextArea (convenience).javax.swing.JTextFieldgetTextField(java.lang.String aName)Returns the named child component as a JTextField (convenience).javax.swing.JToggleButtongetToggleButton(java.lang.String aName)Returns the named child component as a JToggleButton (convenience).javax.swing.JTreegetTree(java.lang.String aName)Returns the named child component as a JTree (convenience).java.lang.ObjectgetValue(java.lang.Object anObj)Unified GetValue to get an Object value from a given component.java.lang.ObjectgetValue(java.lang.String aName)Unified GetValue to get an Object value from a named component.booleangetValueIsAdjusting(java.lang.Object anObj)Unified GetValueIsAdjusting to get isAdjusting state from a given component.booleangetValueIsAdjusting(java.lang.String aName)Unified GetValueIsAdjusting to get isAdjusting state from a named component.java.awt.WindowgetWindow()Returns the window associated with this panel, creating it if necessary.java.lang.ClassgetWindowClass()Returns the class of the window associated with this panel.java.lang.StringgetWindowClassName()Returns the class name of the window associated with this panel.java.lang.StringgetWindowDefaultButton()Returns the name of the default button associated with this panel's window.booleangetWindowIsVisible()Obsolete - make this go soon!.javax.swing.JMenuBargetWindowMenuBar()Returns the menu bar associated with this panel's window.java.awt.WindowgetWindowOwner()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.StringgetWindowTitle()Returns the title of the window associated with this panel.voidinstallResizeHandler()Call this method to set up a listener which will honor the min & max sizes.booleanisWindowAlwaysOnTop()Returns whether the window associated with this panel is always on top.booleanisWindowHideOnDeactivate()Returns whether the window associated with this panel will hide on deactivate.booleanisWindowModal()Returns the modal mode of the window associated with this panel.booleanisWindowResizable()Returns whether the window associated with this panel is resizable.booleanisWindowVisible()Returns whether window associated with this panel is visible.RJPanelpack()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.voidremoveBinder(RBListBinder aBinder)Removes a binder from the panel.voidsetBounds(int x, int y, int w, int h)Overridden to handle constraintsvoidsetBounds(java.awt.Rectangle r)Overridden to handle constraintsvoidsetDataSource(RMDataSource aDataSource)Sets the datasource for the panel.voidsetEnabled(boolean aFlag)Overrides JComponent method to propagate to all children (which is a quick way to disable an entire panel).voidsetEnabled(java.lang.String aName, boolean aValue)Calls set enabled on named child.voidsetEnabled(javax.swing.JComponent aComponent, boolean aValue)Calls set enabled on referenced child.voidsetMaster(RJPanel aMaster)Sets the top level component of the rib file that contained this component.voidsetMaximumSize(java.awt.Dimension d)Overridden so that panel keeps private copies of min/max safely around.voidsetMinimumSize(java.awt.Dimension d)Overridden so that panel keeps private copies of min/max safely around.voidsetOwner(java.lang.Object anOwner)Sets the object that loaded this component.voidsetSize(java.awt.Dimension d)Overridden to handle constraintsvoidsetValue(java.lang.Object anObj, boolean aValue)Unified setValue to set a boolean value in a given component.voidsetValue(java.lang.Object anObj, float aValue)Unified setValue to set an Object value in a given component.voidsetValue(java.lang.Object anObj, int aValue)Unified setValue to set an int value in a given component.voidsetValue(java.lang.Object anObj, java.awt.Color aValue)Unified setValue to set a Color value in a given component.voidsetValue(java.lang.Object anObj, java.lang.Boolean aValue)Unified setValue to set a Boolean value in a given component.voidsetValue(java.lang.Object anObj, java.lang.Object aValue)Unified setValue to set an Object value in a given component.voidsetValue(java.lang.Object anObj, java.lang.String aValue)Unified setValue to set a String value in a given component.voidsetValue(java.lang.String aName, boolean aValue)Unified setValue to set a boolean value in a named component.voidsetValue(java.lang.String aName, float aValue)Unified setValue to set a float value in a named component.voidsetValue(java.lang.String aName, int aValue)Unified setValue to set an int value in a named component.voidsetValue(java.lang.String aName, java.awt.Color aValue)Unified setValue to set a Color value in a named component.voidsetValue(java.lang.String aName, java.lang.Boolean aValue)Unified setValue to set a Boolean value in a named component.voidsetValue(java.lang.String aName, java.lang.Object aValue)Unified setValue to set an Object value in a named component.voidsetValue(java.lang.String aName, java.lang.String aValue)Unified setValue to set a String value in a named component.voidsetWindowAlwaysOnTop(boolean aValue)Sets whether the window associated with this panel is always on top.voidsetWindowClassName(java.lang.String aName)Sets the class name of the window associated with this panel.voidsetWindowDefaultButton(java.lang.String aName)Sets the name of the default button associated with this panel's window.voidsetWindowHideOnDeactivate(boolean aValue)Sets whether the window associated with this panel will hide on deacativate.voidsetWindowMenuBar(javax.swing.JMenuBar aMenuBar)Sets the menu bar associated with this panel's window.voidsetWindowModal(boolean aValue)Sets the modal mode of the window associated with this panel (defaults to false).voidsetWindowOwner(java.awt.Window aWindowOwner)Sets the owner-window/parent-window associated with this panel's window.voidsetWindowResizable(boolean aValue)Sets whether the window associated with this panel is resizable (default to true).voidsetWindowTitle(java.lang.String aValue)Sets the title of the window associated with this panel.voidsetWindowVisible(boolean aValue)This method sets the window associated with this panel to be visible or invisible.voidsetWindowVisible(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.voidwindowDispose()This method disposes the window associated with this panel.-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
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
-
Methods inherited from class java.awt.Container
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
-
Methods inherited from class java.awt.Component
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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
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 a JComponent (convenience).
-
getPanel
public RJPanel getPanel(java.lang.String aName)
Returns the named child component as a JPanel (convenience).
-
getButton
public javax.swing.JButton getButton(java.lang.String aName)
Returns the named child component as a JButton (convenience).
-
getComboBox
public javax.swing.JComboBox getComboBox(java.lang.String aName)
Returns the named child component as a JComboBox (convenience).
-
getLabel
public javax.swing.JLabel getLabel(java.lang.String aName)
Returns the named child component as a JLabel (convenience).
-
getList
public javax.swing.JList getList(java.lang.String aName)
Returns the named child component as a JList (convenience).
-
getMenu
public javax.swing.JMenu getMenu(java.lang.String aName)
Returns the named child component as a JMenu (convenience).
-
getMenuItem
public javax.swing.JMenuItem getMenuItem(java.lang.String aName)
Returns the named child component as a JMenuItem (convenience).
-
getProgressBar
public javax.swing.JProgressBar getProgressBar(java.lang.String aName)
Returns the named child component as a JProgressBar (convenience).
-
getSlider
public javax.swing.JSlider getSlider(java.lang.String aName)
Returns the named child component as a JSlider (convenience).
-
getScrollPane
public javax.swing.JScrollPane getScrollPane(java.lang.String aName)
Returns the named child component as a JScrollPane (convenience).
-
getTabbedPane
public javax.swing.JTabbedPane getTabbedPane(java.lang.String aName)
Returns the named child component as a JTabbedPane (convenience).
-
getTable
public javax.swing.JTable getTable(java.lang.String aName)
Returns the named child component as a JTable (convenience).
-
getTextField
public javax.swing.JTextField getTextField(java.lang.String aName)
Returns the named child component as a JTextField (convenience).
-
getTextArea
public javax.swing.JTextArea getTextArea(java.lang.String aName)
Returns the named child component as a JTextArea (convenience).
-
getToggleButton
public javax.swing.JToggleButton getToggleButton(java.lang.String aName)
Returns the named child component as a JToggleButton (convenience).
-
getTree
public javax.swing.JTree getTree(java.lang.String aName)
Returns the named child component as a JTree (convenience).
-
getLayoutRB
public RJLayout getLayoutRB()
Returns this panels layout manager as an RJLayout.
-
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).- Overrides:
setEnabledin classjavax.swing.JComponent
-
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.- Overrides:
getPreferredSizein classjavax.swing.JComponent
-
getMaximumSize
public java.awt.Dimension getMaximumSize()
Overriden to handle max the max size, if it's been set.- Overrides:
getMaximumSizein classjavax.swing.JComponent
-
getMinimumSize
public java.awt.Dimension getMinimumSize()
Overriden to handle max the min size, if it's been set.- Overrides:
getMinimumSizein classjavax.swing.JComponent
-
setMinimumSize
public void setMinimumSize(java.awt.Dimension d)
Overridden so that panel keeps private copies of min/max safely around.- Overrides:
setMinimumSizein classjavax.swing.JComponent
-
setMaximumSize
public void setMaximumSize(java.awt.Dimension d)
Overridden so that panel keeps private copies of min/max safely around.- Overrides:
setMaximumSizein classjavax.swing.JComponent
-
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- Overrides:
setBoundsin classjava.awt.Component
-
setBounds
public void setBounds(int x, int y, int w, int h)Overridden to handle constraints- Overrides:
setBoundsin classjava.awt.Component
-
setSize
public void setSize(java.awt.Dimension d)
Overridden to handle constraints- Overrides:
setSizein classjava.awt.Component
-
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.
-
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.
-
isWindowAlwaysOnTop
public boolean isWindowAlwaysOnTop()
Returns whether the window associated with this panel is always on top.
-
setWindowAlwaysOnTop
public void setWindowAlwaysOnTop(boolean aValue)
Sets whether the window associated with this panel is always on top.
-
isWindowHideOnDeactivate
public boolean isWindowHideOnDeactivate()
Returns whether the window associated with this panel will hide on deactivate.
-
setWindowHideOnDeactivate
public void setWindowHideOnDeactivate(boolean aValue)
Sets whether the window associated with this panel will hide on deacativate.
-
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).
-
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. This isn't really supported by Swing, so we blow away the current window and re-create.
-
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.
-
isWindowVisible
public boolean isWindowVisible()
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.
-
getWindowIsVisible
public boolean getWindowIsVisible()
Obsolete - make this go soon!.
-
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 RMDataSource getDataSource()
Returns the datasource for the panel.
-
setDataSource
public void setDataSource(RMDataSource aDataSource)
Sets the datasource for the panel.
-
-