public class TabPanel extends JTabbedPane implements FormComponent, ReferenceComponent, IdentifiedElement, AccessForm, ChangeListener
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListenerJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected Object |
attribute
The reference to attribute.
|
protected FormPermission |
enabledPermission
The reference for enabled permission.
|
protected EntityReferenceLocator |
locator
The reference to locator.
|
protected Form |
parentForm
The reference to parent form for component.
|
protected ResourceBundle |
resources |
protected boolean |
restricted
The restricted condition.
|
protected Vector |
tabs
The instance of vector with tabs.
|
protected FormPermission |
visiblePermission
The reference for visible permission.
|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUTaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDEBUG_LANGUAGEDESACTIVATE_COMPONENT_BY_PERMISSION_TIPBOTTOM, 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 |
|---|
TabPanel(Hashtable parameters)
The class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Component c,
Object constraints) |
protected boolean |
checkEnabledPermission()
Checks enabled permission.
|
protected boolean |
checkVisiblePermission()
Checks the visible permission.
|
void |
clearNotQueriedTabs() |
Object |
getAttribute()
Gets the object attribute.
|
Object |
getConstraints(LayoutManager parentLayout)
Description method to return the
constraints component to
place correctly in parent container. |
Vector |
getNotQueriedDataFieldAttributes()
Gets no queried data field attributes.
|
Dimension |
getPreferredSize() |
Component |
getTabAt(int index) |
String |
getTabVisible()
Gets the tab visible.
|
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
void |
hideAllTabs()
Hides all tabs.
|
void |
hideTabs(String title)
Hides the tab according to the title.
|
void |
init(Hashtable parameters)
Inits the parameters.
|
Vector |
initNotQueriedDataFieldAttributes()
Inits no queried data field attributes.
|
void |
initPermissions() |
boolean |
isRestricted() |
void |
remove(Component component) |
void |
setComponentLocale(Locale l) |
void |
setEnabled(boolean enabled)
Description method to set enabled or not the component according the
boolean condition in parameter.
|
void |
setParentForm(Form f)
Method declaration to set the form that contains the component.
|
void |
setReferenceLocator(EntityReferenceLocator b)
Establishes the reference locator that will be used by component.
|
void |
setResourceBundle(ResourceBundle resource)
Sets the language resource bundle.
|
void |
setTabEnabled(int index,
boolean enabled)
Sets the tab enabled according to a index.
|
void |
setTabEnabled(String title,
boolean enabled)
Sets the tab enabled according to a title.
|
void |
setTabVisible(int index)
Sets the tab visible.
|
void |
setTabVisible(String title)
Sets the tab visible.
|
void |
setVisible(boolean visible)
Description method to set visible or not the component according the
boolean condition in parameter.
|
void |
showAllTabs()
Shows all tabs.
|
void |
showTab(String title)
Shows the tab according to the title.
|
void |
stateChanged(ChangeEvent e) |
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, 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, 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, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, 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, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, 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, 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, hide, 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, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisEnabledprotected Object attribute
protected Vector tabs
protected Form parentForm
protected EntityReferenceLocator locator
protected FormPermission visiblePermission
protected FormPermission enabledPermission
protected ResourceBundle resources
protected boolean restricted
public TabPanel(Hashtable parameters)
ChangeListener.
parameters - the hashtable with parameterspublic void setParentForm(Form f)
AccessFormsetParentForm in interface AccessFormf - the form referencepublic void init(Hashtable parameters)
init in interface FormComponentparameters - the hashtable with parameters
| attribute | values | default | required | meaning |
| attr | yes | The attribute for tab panel. | ||
| opaque | yes/no | yes | no | Specifies if the component must be opaque or not. |
| bgcolor | A color | no | Specifies the component background color. |
public Object getAttribute()
IdentifiedElementgetAttribute in interface IdentifiedElementpublic Object getConstraints(LayoutManager parentLayout)
FormComponentconstraints component to
place correctly in parent container.
getConstraints in interface FormComponentparentLayout - the parent container referencepublic Dimension getPreferredSize()
getPreferredSize in class JComponentpublic void setResourceBundle(ResourceBundle resource)
InternationalizationsetResourceBundle in interface Internationalizationresource - the new language bundle.public Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationpublic void setComponentLocale(Locale l)
setComponentLocale in interface Internationalizationpublic void setTabEnabled(int index,
boolean enabled)
index - the tab indexenabled - the condition to enablepublic void setTabEnabled(String title, boolean enabled)
title - the titleenabled - the condition to enablepublic void setTabVisible(String title)
title - the title to find the tabpublic String getTabVisible()
public void setTabVisible(int index)
index - the tab indexpublic void showAllTabs()
public void hideAllTabs()
public void hideTabs(String title)
title - the titlepublic void showTab(String title)
title - the titlepublic void add(Component c, Object constraints)
add in class JTabbedPanepublic void remove(Component component)
remove in class JTabbedPanepublic Component getTabAt(int index)
public void setVisible(boolean visible)
FormComponentsetVisible in interface FormComponentsetVisible in class JComponentvisible - the visibility conditionpublic void setEnabled(boolean enabled)
FormComponentsetEnabled in interface FormComponentsetEnabled in class JComponentenabled - the enabled conditionpublic void initPermissions()
initPermissions in interface SecureElementprotected boolean checkVisiblePermission()
protected boolean checkEnabledPermission()
public Vector initNotQueriedDataFieldAttributes()
public Vector getNotQueriedDataFieldAttributes()
public void clearNotQueriedTabs()
public void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenerpublic void setReferenceLocator(EntityReferenceLocator b)
ReferenceComponentsetReferenceLocator in interface ReferenceComponentb - a reference locator to set in componentpublic boolean isRestricted()
isRestricted in interface SecureElementCopyright © 2016 Imatia Innovation S.L.. All rights reserved.