|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ilog.views.appframe.swing.mdi.IlvMDITab
public class IlvMDITab
Defines the tab components that are inserted within an IlvMDITabbedPane.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface ilog.views.appframe.docview.IlvMDIViewContainer |
|---|
CLOSE_ALL_WINDOWS_CMD, CLOSE_WINDOW_CMD, NEXT_WINDOW_CMD, OWN_TITLE_PROPERTY, PREVIOUS_WINDOW_CMD, TITLE_PROPERTY |
| Fields inherited from interface ilog.views.appframe.docview.IlvViewContainer |
|---|
ACTIVE_VIEW_PROPERTY, APPLICATION_PROPERTY, CONFIGURATION_NAME_PROPERTY, CONTAINER_TEMPLATE_PROPERTY, DOCUMENT_PROPERTY, DOCUMENT_TEMPLATE_PROPERTY, DOCUMENT_VIEWS_PROPERTY, VISIBILITY_PROPERTY |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlvMDITab()
Constructs a new IlvMDITab. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ilog.views.appframe.util.IlvPropertyManager |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Constructor Detail |
|---|
public IlvMDITab()
IlvMDITab.
| Method Detail |
|---|
public 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 ActionListener
public 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)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||