public class PIAPanelGroup extends PIAPanel
PIAPanelGroup
is a Swing-compatible, Portal-aware
Panel
with a built in cardLayout
.JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected com.portal.bas.comp.ResizedCardLayout |
cardLayout
The layout used by this panel
|
protected String[] |
mClasses |
protected Component[] |
mComponents
The components added to this panel
|
protected String[] |
mNames
The names of the components added to this panel
|
collectDataFromInvisiblePanels, isTracking, mIAList, mImpl
IMAGE_CENTERED, IMAGE_SCALE_TO_HEIGHT, IMAGE_SCALE_TO_WIDTH, IMAGE_SCALED, IMAGE_TILED, mImageIcon, mScaledImage
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PIAPanelGroup()
This component represents a set of panels stacked on top of
each other.
|
Modifier and Type | Method and Description |
---|---|
Component |
add(Component c)
Adds a component for layout management by this panel.
|
void |
add(String[] names,
Component[] comps)
Adds components for layout management by this panel.
|
void |
add(String[] names,
String[] classes)
Adds components for layout management by this panel, given their
respective class names.
|
Component |
add(String name,
Component c)
Adds the given component to the panel group after that component's
name property is set to the given name.
|
void |
clear()
Calls removeAll() and then sets the internal component reference
to null.
|
int |
componentToIndex(Component c)
For the given component, retrieves the associated index
|
boolean |
contains(String name)
Determines if this panel group contains a component whose name
matches the named component.
|
Component |
getComponentAt(int i)
For the given index, retrieves the associated component.
|
int |
getComponentsCount()
Returns the total number of components.
|
String |
getControllerClassName()
Retrieves the class name of this component's controller.
|
String[] |
getNames()
Returns the names of the components contained in this group.
|
String |
getVisiblePanel()
Returns the name of the panel that is currently visible.
|
Component |
getVisiblePanelComponent()
Returns the panel that is currently visible.
|
int |
getVisiblePanelIndex()
Returns the index of the panel that is currently visible.
|
Component |
nameToComponent(String name)
For the given name, retrieves the associated component.
|
int |
nameToIndex(String name)
For the given name, retrieves the index of the associated component
|
void |
removeAll()
Removes all components contained within this panel group.
|
void |
removeComponent(Component c)
Removes the specified component from the panel group.
|
void |
removeComponent(String name)
Removes the named component from the panel group.
|
void |
setLayout(LayoutManager lm)
Overridden so the base class' layout cannot be changed.
|
void |
setOpaque(boolean opaque)
Sets the opacity for this panel, as well as all its children.
|
void |
setVisiblePanel(int index)
Flips to the panel that was added to this group at the
specified index.
|
void |
setVisiblePanel(String name)
Flips to the panel that was added to this group with the
specified name.
|
void |
unregister()
Disassociates the controller from the component.
|
collectData, componentAdded, componentRemoved, containsError, firePropertyChange, fireVetoableChange, getBackgroundImageSource, getBundle, getModelHandle, getRemoteComponent, getResourceName, getTools, isClean, isCurrencyDisplay, isDirty, isError, isInputTracking, isLight, isRequired, processError, resetToDefault, revertToPrimary, setBackgroundImageMode, setBackgroundImageSource, setClean, setCurrencyDisplay, setDefault, setError, setInputTracking, setModelHandle, setRequired, setResourceName, togglePrimaryToSecondary, viewDataChange
getBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIcon
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, 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, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, 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, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
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, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, 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, 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, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected transient com.portal.bas.comp.ResizedCardLayout cardLayout
protected String[] mNames
protected Component[] mComponents
protected String[] mClasses
public PIAPanelGroup()
public String getControllerClassName() throws RemoteException
getControllerClassName
in interface PComponent
getControllerClassName
in class PIAPanel
String
with the value
"com.portal.bas.comp.PIAPanelController".RemoteException
- thrown for errorspublic void setLayout(LayoutManager lm)
public void setOpaque(boolean opaque)
setOpaque
in class JComponent
opaque
- an indication of whether or not to set opacity for this
panelpublic Component add(String name, Component c)
public void add(String[] names, Component[] comps)
names
- the names of the components to addcomps
- the components to addpublic void add(String[] names, String[] classes)
names
- the names of the components to addclasses
- the class names of the components to addpublic void unregister() throws RemoteException
unregister
in interface PClientComponent
unregister
in class PIAPanel
RemoteException
public void clear()
clear
in interface PComponentAttribute
clear
in class PIAPanel
public void removeAll()
public void removeComponent(String name)
name
- the name of the component to removepublic void removeComponent(Component c)
c
- the component to removepublic String[] getNames()
public boolean contains(String name)
name
- a string that contains the component name to matchpublic void setVisiblePanel(int index)
index
- the index location of the panel to displaypublic void setVisiblePanel(String name)
name
- the name of the panel to display.public String getVisiblePanel()
public int getVisiblePanelIndex()
public Component getVisiblePanelComponent()
public Component nameToComponent(String name)
name
- the component name to look uppublic int componentToIndex(Component c)
c
- the component to look uppublic int nameToIndex(String name)
name
- the component name to look uppublic int getComponentsCount()
public Component getComponentAt(int i)
i
- the index to look upCopyright © 2003, 2023, Oracle and/or its affiliates.