public class PIATabbedPane extends JTabbedPane implements PViewComponent, 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.ModelListenerJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.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 PComponentImpl |
mImpl |
protected int |
mLastTab |
protected JPopupMenu |
mMenu |
protected ImageIcon |
mMenuIcon |
protected com.portal.bas.comp.PIATabbedPane.MouseHandler |
mMouse |
protected static String |
MODEL_TYPE |
protected com.portal.bas.comp.PIATabbedPane.PopupHandler |
mPopup |
static String |
SELECTED_INDEX |
protected static String |
TO_FRONT_PRIORITY |
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUTlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WESTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
PIATabbedPane()
Creates a PIATabbedPane component
|
PIATabbedPane(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.
|
void |
firePropertyChange(String prop,
Object oldV,
Object newV)
Fires a property change event to any registered listener
|
void |
fireVetoableChange(String prop,
Object oldV,
Object newV)
Fires a vetoable property change event to any registered listener
|
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
|
PRemoteComponent |
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, updateUIaddAncestorListener, 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, 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, updateaddContainerListener, 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, validateTreeaction, 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, 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, transferFocusUpCyclepublic 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.PIATabbedPane.MouseHandler mMouse
protected transient com.portal.bas.comp.PIATabbedPane.PopupHandler mPopup
protected transient PComponentImpl mImpl
protected transient JPopupMenu mMenu
protected transient int mLastTab
protected boolean isTracking
public PIATabbedPane()
public PIATabbedPane(int placement)
public void unregister()
throws RemoteException
unregister in interface PClientComponentRemoteExceptionpublic void setModelHandle(PModelHandle data) throws RemoteException
setModelHandle in interface PComponentdata - The new PModelHandle from which information will be
extracted.RemoteExceptionpublic PModelHandle getModelHandle() throws RemoteException
getModelHandle in interface PComponentRemoteExceptionpublic boolean isLight()
throws RemoteException
isLight in interface PComponentRemoteException - thrown for errorspublic String getControllerClassName() throws RemoteException
getControllerClassName in interface PComponentRemoteExceptionpublic Vector getTools()
getTools in interface PClientComponentpublic Vector getAllTools()
public void setResourceName(String name)
setResourceName in interface PClientComponentname - The new base resource name.public String getResourceName()
getResourceName in interface PClientComponentpublic void firePropertyChange(String prop, Object oldV, Object newV)
firePropertyChange in interface PViewComponentfirePropertyChange in class Componentprop - The property being changedoldV - The old valuenewV - The new value;public void fireVetoableChange(String prop, Object oldV, Object newV) throws PropertyVetoException
fireVetoableChange in interface PViewComponentfireVetoableChange in class JComponentprop - The property being changedoldV - The old valuenewV - The new value;PropertyVetoExceptionpublic PRemoteComponent getRemoteComponent()
getRemoteComponent in interface PViewComponentpublic void viewDataChange(PViewDataChangeEvent event) throws RemoteException
viewDataChange in interface PViewDataChangeListenerevent - The ViewDataChange event describing the changeRemoteException - thrown for errorspublic void stateChanged(ChangeEvent ce)
stateChanged in interface ChangeListenerce - 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.