|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.graphic.composite.layout.IlvCardLayout
public class IlvCardLayout
This class treats each IlvAttachable object within a
container as a card. Only one card is visible at a time, and the
container acts as a stack of cards.
The first component added to a CardLayout object is the visible component
when the container is first displayed.
CardLayout| Constructor Summary | |
|---|---|
IlvCardLayout()
Creates a new instance of IlvCardLayout. |
|
IlvCardLayout(IlvInputStream stream)
Reads the object from an IlvInputStream. |
|
| Method Summary | |
|---|---|
void |
attach(IlvAttachable target)
Sets the constraints defined by the supplied IlvAttachable |
Object |
clone()
Creates a copy of this object. |
protected void |
computeChildrenAttachmentCoordinates(IlvAttachable target)
Sets the attachment coordinates of the card with respect to the attachment bounds of the specified target. |
String |
getVisible()
Returns the name of the visible card. |
void |
layoutGroup(IlvAttachable target)
Lays out the specified IlvAttachablecontainer. |
void |
removeConstraints(IlvAttachable element)
Removes the specified IlvAttachable from the layout. |
void |
reset()
Remove all the constraints |
boolean |
resizeFirstChildOnly()
Always returns false |
void |
setConstraints(IlvAttachable element,
Object constraints)
Adds the specified IlvAttachable to the layout, using the specified
constraint object. |
void |
setVisible(String name)
Sets the name of the visible card. |
protected void |
visible(int newIndex)
Flips to the card that was added to this layout with the specified index. |
void |
visible(String name)
Flips to the card that was added to this layout with the specified name. |
void |
write(IlvOutputStream stream)
Writes the attributes of a persistent object. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvCardLayout()
IlvCardLayout.
public IlvCardLayout(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream.
stream - The input stream.
IlvReadFileException - if the format is not correct.| Method Detail |
|---|
public void setConstraints(IlvAttachable element,
Object constraints)
IlvAttachable to the layout, using the specified
constraint object.
setConstraints in interface IlvLayoutManagerelement - the IlvAttachable to be addedconstraints - where/how the component is added to the layout.public void removeConstraints(IlvAttachable element)
IlvAttachable from the layout.
removeConstraints in interface IlvLayoutManagerelement - the IlvAttachable>/code> object to be removed.public void reset()
reset in interface IlvLayoutManagerpublic void layoutGroup(IlvAttachable target)
IlvAttachablecontainer.
layoutGroup in interface IlvLayoutManagertarget - the container to be laid outpublic void attach(IlvAttachable target)
IlvAttachable
attach in interface IlvLayoutManagertarget - the container to be laid outIlvAttachable.getAttachables(),
IlvAttachable.getConstraints()protected void computeChildrenAttachmentCoordinates(IlvAttachable target)
public void visible(String name)
public void setVisible(String name)
public String getVisible()
protected void visible(int newIndex)
newIndex - public boolean resizeFirstChildOnly()
false
resizeFirstChildOnly in interface IlvLayoutManagerpublic Object clone()
clone in interface IlvLayoutManagerclone in class Object
public void write(IlvOutputStream stream)
throws IOException
write in interface IlvPersistentObjectstream - The output stream.
IOException - Thrown when an exception
occurs during the write operation for this object.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||