public class IlvMDITab extends JPanel implements IlvMDIViewContainer
IlvMDITabbedPane.JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategylistenerList, 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_ALIGNMENTCLOSE_ALL_WINDOWS_CMD, CLOSE_WINDOW_CMD, NEXT_WINDOW_CMD, OWN_TITLE_PROPERTY, PREVIOUS_WINDOW_CMD, TITLE_PROPERTYACTIVE_VIEW_PROPERTY, APPLICATION_PROPERTY, CONFIGURATION_NAME_PROPERTY, CONTAINER_TEMPLATE_PROPERTY, DOCUMENT_PROPERTY, DOCUMENT_TEMPLATE_PROPERTY, DOCUMENT_VIEWS_PROPERTY, VISIBILITY_PROPERTYABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
IlvMDITab()
Constructs a new
IlvMDITab. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs.
|
void |
activate()
Sets the MDI tab active.
|
boolean |
addViews(IlvDocumentView[] views)
Adds the specified views to the container.
|
boolean |
builtInViews()
Determines whether this internal frame already contains views when it is created.
|
boolean |
close()
Closes the MDI tab.
|
IlvDocumentView |
getActiveView()
Returns the active view of this MDI tab.
|
IlvApplication |
getApplication()
Returns the application of the view.
|
IlvContainerTemplate |
getContainerTemplate()
Returns the tabbed pane that has created this tab.
|
String |
getContainerTitle()
Returns the title of the container.
|
IlvDocument |
getDocument()
Returns the document associated with this view container.
|
Object |
getProperty(String key)
Returns the client property of the MDI tab with the specified key.
|
IlvDocumentView[] |
getViews()
Returns the document views of this container.
|
boolean |
isContainerVisible()
Determines whether this MDI tab is visible.
|
boolean |
isProcessingAction(String command)
Determines whether the action handler is able to perform the action
with the specified
command key in its
ActionListener.actionPerformed(java.awt.event.ActionEvent) method. |
void |
setApplication(IlvApplication application)
Sets the application of the view.
|
void |
setContainerTitle(String title)
Sets a new title to the container.
|
void |
setContainerVisible(boolean visible)
Shows or hides this tab depending on the value of the
visible parameter. |
void |
setDocument(IlvDocument document)
Sets the document associated with the view.
|
Object |
setProperty(String key,
Object value)
Sets one of the client properties of this MDI tab using the associated key.
|
boolean |
updateAction(Action action)
Invoked by the application for updating the state of the specified
action. |
getAccessibleContext, getUI, getUIClassID, paramString, 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, 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, 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, updateadd, 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, 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, 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, waitaddPropertyChangeListener, removePropertyChangeListenerpublic boolean isContainerVisible()
isContainerVisible in interface IlvViewContainertrue if the tab is visible; false
otherwise.IlvViewContainer.setContainerVisible(boolean)public void setContainerVisible(boolean visible)
visible parameter.setContainerVisible in interface IlvViewContainervisible - If true, the tab is set visible; if
false, the tab is set invisible.isContainerVisible()public boolean close()
close in interface IlvMDIViewContainertrue if the MDI tab could be closed;
false otherwise.public void activate()
activate in interface IlvViewContainerpublic String getContainerTitle()
getContainerTitle in interface IlvMDIViewContainerIlvMDIViewContainer.TITLE_PROPERTY.setContainerTitle(java.lang.String)public void setContainerTitle(String title)
TITLE_PROPERTY to the specified title.setContainerTitle in interface IlvMDIViewContainertitle - The new title of the container.getContainerTitle()public IlvDocument getDocument()
setDocument(ilog.views.appframe.docview.IlvDocument),
IlvViewContainer.DOCUMENT_PROPERTYpublic void setDocument(IlvDocument document)
document - The document of the view.getDocument(),
IlvViewContainer.DOCUMENT_PROPERTYpublic IlvApplication getApplication()
setApplication(ilog.views.appframe.IlvApplication),
IlvDocumentView.APPLICATION_PROPERTYpublic void setApplication(IlvApplication application)
application - The application of the view.getApplication(),
IlvDocumentView.APPLICATION_PROPERTYpublic IlvDocumentView getActiveView()
public boolean builtInViews()
If it already contains views, it is asked to provide the built-in views
with the getViews() method.
Otherwise, the document template associated with this container provides
the document views to the container with the method addViews(ilog.views.appframe.docview.IlvDocumentView[]).
builtInViews in interface IlvMDIViewContainerfalse for receiving views from the document template;
true if it already contains document views.getViews(),
addViews(ilog.views.appframe.docview.IlvDocumentView[])public boolean addViews(IlvDocumentView[] views)
addViews in interface IlvMDIViewContainerviews - The views to add.true if the views could be added to the
container; false otherwise.public IlvDocumentView[] getViews()
getViews in interface IlvViewContainerpublic IlvContainerTemplate getContainerTemplate()
IlvMDITabbedPane class is returned.public boolean isProcessingAction(String command)
command key in its
ActionListener.actionPerformed(java.awt.event.ActionEvent) method.isProcessingAction in interface ActionHandlercommand - The command key of the action.false by default.public boolean updateAction(Action action)
action. For example, the implementation of this method
can enable or disable the action.updateAction in interface ActionHandleraction - The action to update.false by default.public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic Object setProperty(String key, Object value)
PropertyChangeEvent is sent to
property change listeners.setProperty in interface IlvPropertyManagerkey - The non-null property key.value - An Object value. If it equals
null, the property with the specified key is removed.getProperty(java.lang.String),
JComponent.putClientProperty(java.lang.Object, java.lang.Object)public Object getProperty(String key)
getProperty in interface IlvPropertyManagerkey - The non-null property key.null
if the specified property was not found.setProperty(java.lang.String, java.lang.Object),
JComponent.getClientProperty(java.lang.Object)© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.