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:
- ImageObserver,- MenuContainer,- Serializable,- Accessible
- Direct Known Subclasses:
- AnimScript.AnimScriptUI,- DocumentTool.PageSizeView,- Gallery.GalleryUI,- LabelTool.LabelToolUI,- RBTester.GlassPane,- RJSwitchPane,- ShapeFillsShadow.OffsetPanel
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 <info@reportmill.com>.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class javax.swing.JPanelJPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponentJComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.ContainerContainer.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.ComponentComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
- 
Field SummaryFields inherited from class javax.swing.JComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.ComponentaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserverABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddBinder(RBListBinder aBinder) Adds a binder to the panel.booleanReturns whether a given component matches a named component.Get the specific child component with the given name.getBinder(int anIndex) Returns the specific binder at the given index.Returns the named binder for this panel.intReturns the number of binders for this panel.getBooleanValue(Object anObj) Unified GetValue to get a Boolean value from a given component.getBooleanValue(String aName) Unified GetValue to get a Boolean value from a named component.booleangetBoolValue(Object anObj) Unified GetValue to get a boolean value from a given component.booleangetBoolValue(String aName) Unified GetValue to get a boolean value from a named component.Returns the named child component as a JButton (convenience).getButtonGroup(String aName) Return the button group in this table for the given name (creating if needed).Returns the Map of all named buttonGroups in the panel.getClippedSize(int w, int h) A utility method to constrain values to within min & max valuesgetColorValue(Object anObj) Unified accessor to return the color from a given component.getColorValue(String aName) Unified accessor to return the color from a given named component.getComboBox(String aName) Returns the named child component as a JComboBox (convenience).getComponent(String aName) Returns the named child component as a JComponent (convenience).Returns the datasource for the panel.floatgetFloatValue(Object anObj) Unified GetValue to get a float value from a given component.floatgetFloatValue(String aName) Unified GetValue to get a float value from a named component.intgetIntValue(Object anObj) Unified GetValue to get an int value from a given component.intgetIntValue(String aName) Unified GetValue to get an int value from a named component.Returns the named child component as a JLabel (convenience).Returns this panels layout manager as an RJLayout.Returns the named child component as a JList (convenience).Returns the top level component of the rib file that contained this component.Overriden to handle max the max size, if it's been set.Returns the named child component as a JMenu (convenience).getMenuItem(String aName) Returns the named child component as a JMenuItem (convenience).Overriden to handle max the min size, if it's been set.getOwner()Returns the object that loaded this component.Returns the named child component as a JPanel (convenience).Overrides component method to indicate that preferred size is current size.getProgressBar(String aName) Returns the named child component as a JProgressBar (convenience).getScrollPane(String aName) Returns the named child component as a JScrollPane (convenience).Returns the named child component as a JSlider (convenience).getStringValue(Object anObj) Unified GetValue to get a String value from a given component.getStringValue(String aName) Unified GetValue to get a String value from a named component.getTabbedPane(String aName) Returns the named child component as a JTabbedPane (convenience).Returns the named child component as a JTable (convenience).getTextArea(String aName) Returns the named child component as a JTextArea (convenience).getTextField(String aName) Returns the named child component as a JTextField (convenience).getToggleButton(String aName) Returns the named child component as a JToggleButton (convenience).Returns the named child component as a JTree (convenience).Unified GetValue to get an Object value from a given component.Unified GetValue to get an Object value from a named component.booleangetValueIsAdjusting(Object anObj) Unified GetValueIsAdjusting to get isAdjusting state from a given component.booleangetValueIsAdjusting(String aName) Unified GetValueIsAdjusting to get isAdjusting state from a named component.Returns the window associated with this panel, creating it if necessary.Returns the class of the window associated with this panel.Returns the class name of the window associated with this panel.Returns the name of the default button associated with this panel's window.booleanObsolete - make this go soon!.Returns the menu bar associated with this panel's window.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.Returns the title of the window associated with this panel.voidCall this method to set up a listener which will honor the min & max sizes.booleanReturns whether the window associated with this panel is always on top.booleanReturns whether the window associated with this panel will hide on deactivate.booleanReturns the modal mode of the window associated with this panel.booleanReturns whether the window associated with this panel is resizable.booleanReturns whether window associated with this panel is visible.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.voidremoveBinder(RBListBinder aBinder) Removes a binder from the panel.voidsetBounds(int x, int y, int w, int h) Overridden to handle constraintsvoidOverridden 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(String aName, boolean aValue) Calls set enabled on named child.voidsetEnabled(JComponent aComponent, boolean aValue) Calls set enabled on referenced child.voidSets the top level component of the rib file that contained this component.voidOverridden so that panel keeps private copies of min/max safely around.voidOverridden so that panel keeps private copies of min/max safely around.voidSets the object that loaded this component.voidOverridden to handle constraintsvoidUnified setValue to set a boolean value in a given component.voidUnified setValue to set an Object value in a given component.voidUnified setValue to set an int value in a given component.voidUnified setValue to set a Color value in a given component.voidUnified setValue to set a Boolean value in a given component.voidUnified setValue to set an Object value in a given component.voidUnified setValue to set a String value in a given component.voidUnified setValue to set a boolean value in a named component.voidUnified setValue to set a float value in a named component.voidUnified setValue to set an int value in a named component.voidUnified setValue to set a Color value in a named component.voidUnified setValue to set a Boolean value in a named component.voidUnified setValue to set an Object value in a named component.voidUnified 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(String aName) Sets the class name of the window associated with this panel.voidsetWindowDefaultButton(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(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(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(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, 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.voidThis method disposes the window associated with this panel.Methods inherited from class javax.swing.JPanelgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponentaddAncestorListener, 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, updateMethods inherited from class java.awt.Containeradd, 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, validateTreeMethods inherited from class java.awt.Componentaction, 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
- 
Constructor Details- 
RJPanelpublic RJPanel()Creates a new RJPanel.
 
- 
- 
Method Details- 
getOwnerReturns the object that loaded this component.
- 
setOwnerSets the object that loaded this component.
- 
getMasterReturns the top level component of the rib file that contained this component.
- 
setMasterSets the top level component of the rib file that contained this component.
- 
getGet the specific child component with the given name.
- 
getComponentReturns the named child component as a JComponent (convenience).
- 
getPanelReturns the named child component as a JPanel (convenience).
- 
getButtonReturns the named child component as a JButton (convenience).
- 
getComboBoxReturns the named child component as a JComboBox (convenience).
- 
getLabelReturns the named child component as a JLabel (convenience).
- 
getListReturns the named child component as a JList (convenience).
- 
getMenuReturns the named child component as a JMenu (convenience).
- 
getMenuItemReturns the named child component as a JMenuItem (convenience).
- 
getProgressBarReturns the named child component as a JProgressBar (convenience).
- 
getSliderReturns the named child component as a JSlider (convenience).
- 
getScrollPaneReturns the named child component as a JScrollPane (convenience).
- 
getTabbedPaneReturns the named child component as a JTabbedPane (convenience).
- 
getTableReturns the named child component as a JTable (convenience).
- 
getTextFieldReturns the named child component as a JTextField (convenience).
- 
getTextAreaReturns the named child component as a JTextArea (convenience).
- 
getToggleButtonReturns the named child component as a JToggleButton (convenience).
- 
getTreeReturns the named child component as a JTree (convenience).
- 
getLayoutRBReturns this panels layout manager as an RJLayout.
- 
getBinderCountpublic int getBinderCount()Returns the number of binders for this panel.
- 
getBinderReturns the specific binder at the given index.
- 
getBinderReturns the named binder for this panel.
- 
addBinderAdds a binder to the panel.
- 
removeBinderRemoves a binder from the panel.
- 
getButtonGroupReturn the button group in this table for the given name (creating if needed).
- 
getButtonGroupsReturns the Map of all named buttonGroups in the panel.
- 
equalsReturns whether a given component matches a named component.
- 
getValueUnified GetValue to get an Object value from a named component.
- 
getValueUnified GetValue to get an Object value from a given component.
- 
setValueUnified setValue to set an Object value in a named component.
- 
setValueUnified setValue to set an Object value in a given component.
- 
getStringValueUnified GetValue to get a String value from a named component.
- 
getStringValueUnified GetValue to get a String value from a given component.
- 
setValueUnified setValue to set a String value in a named component.
- 
setValueUnified setValue to set a String value in a given component.
- 
getBooleanValueUnified GetValue to get a Boolean value from a named component.
- 
getBooleanValueUnified GetValue to get a Boolean value from a given component.
- 
setValueUnified setValue to set a Boolean value in a named component.
- 
setValueUnified setValue to set a Boolean value in a given component.
- 
getBoolValueUnified GetValue to get a boolean value from a named component.
- 
getBoolValueUnified GetValue to get a boolean value from a given component.
- 
setValueUnified setValue to set a boolean value in a named component.
- 
setValueUnified setValue to set a boolean value in a given component.
- 
getIntValueUnified GetValue to get an int value from a named component.
- 
getIntValueUnified GetValue to get an int value from a given component.
- 
setValueUnified setValue to set an int value in a named component.
- 
setValueUnified setValue to set an int value in a given component.
- 
getFloatValueUnified GetValue to get a float value from a named component.
- 
getFloatValueUnified GetValue to get a float value from a given component.
- 
setValueUnified setValue to set a float value in a named component.
- 
setValueUnified setValue to set an Object value in a given component.
- 
getColorValueUnified accessor to return the color from a given named component.
- 
getColorValueUnified accessor to return the color from a given component.
- 
setValueUnified setValue to set a Color value in a named component.
- 
setValueUnified setValue to set a Color value in a given component.
- 
getValueIsAdjustingUnified GetValueIsAdjusting to get isAdjusting state from a named component.
- 
getValueIsAdjustingUnified GetValueIsAdjusting to get isAdjusting state from a given component.
- 
setEnabledCalls set enabled on named child.
- 
setEnabledCalls set enabled on referenced child.
- 
setEnabledpublic void setEnabled(boolean aFlag) Overrides JComponent method to propagate to all children (which is a quick way to disable an entire panel).- Overrides:
- setEnabledin class- JComponent
 
- 
packThis 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.
- 
getPreferredSizeOverrides component method to indicate that preferred size is current size.- Overrides:
- getPreferredSizein class- JComponent
 
- 
getMaximumSizeOverriden to handle max the max size, if it's been set.- Overrides:
- getMaximumSizein class- JComponent
 
- 
getMinimumSizeOverriden to handle max the min size, if it's been set.- Overrides:
- getMinimumSizein class- JComponent
 
- 
setMinimumSizeOverridden so that panel keeps private copies of min/max safely around.- Overrides:
- setMinimumSizein class- JComponent
 
- 
setMaximumSizeOverridden so that panel keeps private copies of min/max safely around.- Overrides:
- setMaximumSizein class- JComponent
 
- 
getClippedSizeA utility method to constrain values to within min & max values
- 
setBoundsOverridden to handle constraints
- 
setBoundspublic void setBounds(int x, int y, int w, int h) Overridden to handle constraints
- 
setSizeOverridden to handle constraints
- 
installResizeHandlerpublic void installResizeHandler()Call this method to set up a listener which will honor the min & max sizes.
- 
getWindowReturns the window associated with this panel, creating it if necessary.
- 
getWindowClassNameReturns the class name of the window associated with this panel.
- 
setWindowClassNameSets the class name of the window associated with this panel.
- 
getWindowClassReturns the class of the window associated with this panel.
- 
getWindowTitleReturns the title of the window associated with this panel.
- 
setWindowTitleSets the title of the window associated with this panel.
- 
isWindowResizablepublic boolean isWindowResizable()Returns whether the window associated with this panel is resizable.
- 
setWindowResizablepublic void setWindowResizable(boolean aValue) Sets whether the window associated with this panel is resizable (default to true).
- 
getWindowMenuBarReturns the menu bar associated with this panel's window.
- 
setWindowMenuBarSets the menu bar associated with this panel's window.
- 
isWindowAlwaysOnToppublic boolean isWindowAlwaysOnTop()Returns whether the window associated with this panel is always on top.
- 
setWindowAlwaysOnToppublic void setWindowAlwaysOnTop(boolean aValue) Sets whether the window associated with this panel is always on top.
- 
isWindowHideOnDeactivatepublic boolean isWindowHideOnDeactivate()Returns whether the window associated with this panel will hide on deactivate.
- 
setWindowHideOnDeactivatepublic void setWindowHideOnDeactivate(boolean aValue) Sets whether the window associated with this panel will hide on deacativate.
- 
isWindowModalpublic boolean isWindowModal()Returns the modal mode of the window associated with this panel.
- 
setWindowModalpublic void setWindowModal(boolean aValue) Sets the modal mode of the window associated with this panel (defaults to false).
- 
getWindowOwnerReturns 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.
- 
setWindowOwnerSets 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.
- 
getWindowDefaultButtonReturns the name of the default button associated with this panel's window.
- 
setWindowDefaultButtonSets the name of the default button associated with this panel's window.
- 
isWindowVisiblepublic boolean isWindowVisible()Returns whether window associated with this panel is visible.
- 
setWindowVisiblepublic void setWindowVisible(boolean aValue) This method sets the window associated with this panel to be visible or invisible.
- 
getWindowIsVisiblepublic boolean getWindowIsVisible()Obsolete - make this go soon!.
- 
setWindowVisibleThis 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).
- 
windowDisposepublic void windowDispose()This method disposes the window associated with this panel.
- 
getDataSourceReturns the datasource for the panel.
- 
setDataSourceSets the datasource for the panel.
 
-