public class IlvDefaultStaticViewContainer extends IlvAbstractStaticViewContainer
ACTIVE_VIEW_PROPERTY, APPLICATION_PROPERTY, CONFIGURATION_NAME_PROPERTY, CONTAINER_TEMPLATE_PROPERTY, DOCUMENT_PROPERTY, DOCUMENT_TEMPLATE_PROPERTY, DOCUMENT_VIEWS_PROPERTY, VISIBILITY_PROPERTY
Constructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
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. |
actionPerformed, addActionHandler, addPropertyChangeListener, getProperty, getViews, isProcessingAction, removeActionHandler, removePropertyChangeListener, setProperty, updateAction
public IlvDefaultStaticViewContainer(Container container)
IlvDefaultStaticViewContainer
associated
with the specified container
.public IlvDefaultStaticViewContainer(Container container, IlvDocumentView view)
IlvDefaultStaticViewContainer
associated
with the specified component
and that contains the
specified view
.container
- The container.view
- The document view contained by this view container.public Container getContainer()
setContainer(java.awt.Container)
public void setContainer(Container container)
container
- The new view container of this view container.getContainer()
public boolean isContainerVisible()
isContainerVisible
in interface IlvViewContainer
isContainerVisible
in class IlvAbstractStaticViewContainer
true
if the container associated with this view
container is visible; false
otherwise.setContainerVisible(boolean)
public void setContainerVisible(boolean visible)
visible
parameter. The container associated with this view
container is set visible or invisible depending on the value of the
visible
parameter.setContainerVisible
in interface IlvViewContainer
setContainerVisible
in class IlvAbstractStaticViewContainer
visible
- If true
, the view container will be shown; if
false
, the view container will be hidden.isContainerVisible()
protected IlvDocumentView[] findViews()
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.findViews
in class IlvAbstractStaticViewContainer
setContainer(java.awt.Container)
public void activate()
activate
in interface IlvViewContainer
activate
in class IlvAbstractStaticViewContainer
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.