public class PIATabPane extends JTabbedPane implements PAppComponent, Serializable, ChangeListener
addTab()
method. This String would consist of property
'names' which when combined with the 'base' property (see the
setResourceName()
method) would be used to determine
the tab labels and Class names of the panels in the Tab.
For example:
setResourceName("admin");
addTab("foo:bar");
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected boolean |
isTracking |
protected static String |
MENU_ICONS |
protected static String |
MENU_ITEMS |
protected static String |
MENU_TIPS |
protected PComponentDelegate |
mImpl |
protected int |
mLastTab |
protected JPopupMenu |
mMenu |
protected ImageIcon |
mMenuIcon |
protected com.portal.bas.comp.PIATabPane.MouseHandler |
mMouse |
protected static String |
MODEL_TYPE |
protected com.portal.bas.comp.PIATabPane.PopupHandler |
mPopup |
static String |
SELECTED_INDEX |
protected static String |
TO_FRONT_PRIORITY |
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT
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
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PIATabPane()
Creates a PIATabbedPane component
|
PIATabPane(int placement)
Creates a PIATabbedPane component
|
Modifier and Type | Method and Description |
---|---|
void |
addTab(String[] titles,
Icon[] icons,
PIAPanelGroup pg,
String[] tips,
String modelType,
int frontPri)
Adds a tab containing virtual tabs
|
void |
addTab(String title,
Icon icon,
JComponent comp,
String tip)
Adds a component and tip represented by a title
and/or icon, either of which can be null.
|
void |
addTab(String title,
Icon icon,
JComponent comp,
String tip,
String modelType,
int frontPri)
Adds a component and tip represented by a title
and/or icon, either of which can be null.
|
Vector |
getAllTools()
get all tools for every tab in this panel
|
String |
getControllerClassName()
Retrieves the class name of this component's controller
|
PModelHandle |
getModelHandle()
Retrieves the PModelHandle for this component
|
Remote |
getRemoteComponent()
Get a reference to the remote component for this object.
|
String |
getResourceName()
Get the base resource name used in resource lookup.
|
Vector |
getTools()
Get a list of Actions supported by the visible tab.
|
void |
insertTab(String title,
Icon icon,
JComponent comp,
String tip,
String modType,
int frontPri,
int index)
Inserts a component and tip represented by a title
and/or icon, either of which can be null, at the given location.
|
boolean |
isLight()
Not a lightweight component as far as handling model handles goes
|
void |
setModelHandle(PModelHandle data)
Establishes the PModelHandle for this component.
|
void |
setResourceName(String name)
Set the base resource name used in resource lookup.
|
void |
stateChanged(ChangeEvent ce)
Event handler called when tab selection changes
|
void |
unregister()
Used to disassociate this component from its delegate (controller)
|
void |
viewDataChange(PViewDataChangeEvent event)
ViewDataChangeListener override.
|
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, fireStateChanged, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabComponentAt, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, indexOfTabComponent, insertTab, isEnabledAt, paramString, remove, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setSelectedComponent, setSelectedIndex, setTabComponentAt, setTabLayoutPolicy, setTabPlacement, setTitleAt, setToolTipTextAt, 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, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
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, 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, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final String SELECTED_INDEX
protected static final String MENU_ITEMS
protected static final String MENU_ICONS
protected static final String MENU_TIPS
protected static final String MODEL_TYPE
protected static final String TO_FRONT_PRIORITY
protected transient ImageIcon mMenuIcon
protected transient com.portal.bas.comp.PIATabPane.MouseHandler mMouse
protected transient com.portal.bas.comp.PIATabPane.PopupHandler mPopup
protected transient PComponentDelegate mImpl
protected transient JPopupMenu mMenu
protected transient int mLastTab
protected boolean isTracking
public PIATabPane()
public PIATabPane(int placement)
public void unregister() throws RemoteException
unregister
in interface PClientComponent
RemoteException
public void setModelHandle(PModelHandle data) throws RemoteException
setModelHandle
in interface PComponent
data
- The new PModelHandle from which information will be
extracted.RemoteException
public PModelHandle getModelHandle() throws RemoteException
getModelHandle
in interface PComponent
RemoteException
public boolean isLight() throws RemoteException
isLight
in interface PComponent
RemoteException
- thrown for errorspublic String getControllerClassName() throws RemoteException
getControllerClassName
in interface PComponent
RemoteException
public Vector getTools()
getTools
in interface PClientComponent
public Vector getAllTools()
public void setResourceName(String name)
setResourceName
in interface PClientComponent
name
- The new base resource name.public String getResourceName()
getResourceName
in interface PClientComponent
public Remote getRemoteComponent()
getRemoteComponent
in interface PAppComponent
public void viewDataChange(PViewDataChangeEvent event) throws RemoteException
viewDataChange
in interface PViewDataChangeListener
event
- The ViewDataChange event describing the changeRemoteException
- thrown for errorspublic void stateChanged(ChangeEvent ce)
stateChanged
in interface ChangeListener
ce
- public void addTab(String title, Icon icon, JComponent comp, String tip)
title
- the title to be displayed in this tabicon
- the icon to be displayed in this tabcomponent
- The component to be displayed when this tab is clicked.tip
- the tooltip to be displayed for this tabinsertTab(java.lang.String, javax.swing.Icon, javax.swing.JComponent, java.lang.String, java.lang.String, int, int)
,
JTabbedPane.removeTabAt(int)
public void addTab(String[] titles, Icon[] icons, PIAPanelGroup pg, String[] tips, String modelType, int frontPri)
title
- the array of titles to be displayed in this tabicon
- the array of icons to be displayed in this tabtip
- the array of tooltips to be displayed for this tabmodelType
- The type of storable class this tab is interested infrontPri
- The toFront priority for this tabpublic void addTab(String title, Icon icon, JComponent comp, String tip, String modelType, int frontPri)
title
- the title to be displayed in this tabicon
- the icon to be displayed in this tabcomponent
- The component to be displayed when this tab is clicked.tip
- the tooltip to be displayed for this tabmodelType
- The model type this component this tab wantsfrontPri
- The priority for bringing this tab to the frontinsertTab(java.lang.String, javax.swing.Icon, javax.swing.JComponent, java.lang.String, java.lang.String, int, int)
,
JTabbedPane.removeTabAt(int)
public void insertTab(String title, Icon icon, JComponent comp, String tip, String modType, int frontPri, int index)
title
- the title to be displayed in this tabicon
- the icon to be displayed in this tabcomponent
- The component to be displayed when this tab is clicked.tip
- the tooltip to be displayed for this tabmodelType
- The model type this component this tab wantsfrontPri
- The priority for bringing this tab to the frontindex
- The location to insert the tabJTabbedPane.removeTabAt(int)
Copyright © 2003, 2023, Oracle and/or its affiliates.