ilog.views.appframe.swing
Class IlvDefaultStaticViewContainer

java.lang.Object
  extended by ilog.views.appframe.docview.IlvAbstractStaticViewContainer
      extended by ilog.views.appframe.swing.IlvDefaultStaticViewContainer
All Implemented Interfaces:
IlvViewContainer, ActionHandler, IlvPropertyManager, ActionListener, EventListener

public class IlvDefaultStaticViewContainer
extends IlvAbstractStaticViewContainer

The default implementation for Swing static view containers.


Field Summary
 
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
 
Constructor Summary
IlvDefaultStaticViewContainer(Container container)
          Constructs a new IlvDefaultStaticViewContainer associated with the specified container.
IlvDefaultStaticViewContainer(Container container, IlvDocumentView view)
          Constructs a new IlvDefaultStaticViewContainer associated with the specified component and that contains the specified view.
 
Method Summary
 void activate()
          Sets the container active.
protected  IlvDocumentView[] findViews()
          Invoked by the IlvAbstractStaticViewContainer.getViews() method to retrieve the document views contained by this view container.
 Container getContainer()
          Returns the container associated with this static view container.
 boolean isContainerVisible()
          Determines whether this view container is visible.
 void setContainer(Container container)
          Sets the container associated with this static view container.
 void setContainerVisible(boolean visible)
          Shows or hides this view container, depending on the value of the visible parameter.
 
Methods inherited from class ilog.views.appframe.docview.IlvAbstractStaticViewContainer
actionPerformed, addActionHandler, addPropertyChangeListener, getProperty, getViews, isProcessingAction, removeActionHandler, removePropertyChangeListener, setProperty, updateAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvDefaultStaticViewContainer

public IlvDefaultStaticViewContainer(Container container)
Constructs a new IlvDefaultStaticViewContainer associated with the specified container.


IlvDefaultStaticViewContainer

public IlvDefaultStaticViewContainer(Container container,
                                     IlvDocumentView view)
Constructs a new IlvDefaultStaticViewContainer associated with the specified component and that contains the specified view.

Parameters:
container - The container.
view - The document view contained by this view container.
Method Detail

getContainer

public Container getContainer()
Returns the container associated with this static view container.

See Also:
setContainer(java.awt.Container)

setContainer

public void setContainer(Container container)
Sets the container associated with this static view container.

Parameters:
container - The new view container of this view container.
See Also:
getContainer()

isContainerVisible

public boolean isContainerVisible()
Determines whether this view container is visible.

Specified by:
isContainerVisible in interface IlvViewContainer
Overrides:
isContainerVisible in class IlvAbstractStaticViewContainer
Returns:
true if the container associated with this view container is visible; false otherwise.
See Also:
setContainerVisible(boolean)

setContainerVisible

public void setContainerVisible(boolean visible)
Shows or hides this view container, depending on the value of the visible parameter. The container associated with this view container is set visible or invisible depending on the value of the visible parameter.

Specified by:
setContainerVisible in interface IlvViewContainer
Overrides:
setContainerVisible in class IlvAbstractStaticViewContainer
Parameters:
visible - If true, the view container will be shown; if false, the view container will be hidden.
See Also:
isContainerVisible()

findViews

protected IlvDocumentView[] findViews()
Invoked by the IlvAbstractStaticViewContainer.getViews() method to retrieve the document views contained by this view container. This method is only invoked the first time the IlvAbstractStaticViewContainer.getViews() is invoked. The views returned by this method are then stored and returned the next time the IlvAbstractStaticViewContainer.getViews() method is called. This method returns all the components that implement the IlvDocumentView interface in the hierarchy of components contained by the container associated with this object.

Specified by:
findViews in class IlvAbstractStaticViewContainer
Returns:
The array of views of this view container.
See Also:
setContainer(java.awt.Container)

activate

public void activate()
Sets the container active.

Specified by:
activate in interface IlvViewContainer
Specified by:
activate in class IlvAbstractStaticViewContainer


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.