|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvlcskineditor.Layout
public class Layout
Handles a windows' layout and it's content
| Field Summary | |
|---|---|
int |
height
|
java.lang.String |
id
|
java.lang.String |
ID_DEFAULT
|
int |
maxheight
|
int |
MAXHEIGHT_DEFAULT
|
int |
maxwidth
|
int |
MAXWIDTH_DEFAULT
|
int |
minheight
|
int |
MINHEIGHT_DEFAULT
|
int |
minwidth
|
int |
MINWIDTH_DEFAULT
|
java.lang.String |
type
|
int |
width
|
| Constructor Summary | |
|---|---|
Layout(org.w3c.dom.Node n,
Window w_,
Skin s_)
Parses a layout's structure from a given XML node |
|
Layout(java.lang.String xmlcode,
Window w_,
Skin s_)
Creates a new Layout from XML. |
|
Layout(Window w_,
Skin s_)
Creates a new Layout from user input. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Handles the user interaction with the editing dialog. |
void |
draw(java.awt.Graphics2D g,
int z)
Draws the Layout. |
Item |
getItem(java.lang.String id_)
Gets the Item of the given id if it is contained in the Layout. |
java.util.List<Item> |
getParentListOf(java.lang.String id_)
Gets the List in which the Item specified by the given ID is stored. |
Item |
getParentOf(java.lang.String id_)
Gets the parent Item of the Item specified by the given ID. |
javax.swing.tree.DefaultMutableTreeNode |
getTreeNode()
Creates a TreeNode visualizing this Layout in the windows and layouts tree. |
void |
renameForCopy(java.lang.String p)
Renames the Layout and all its content after the copy process |
void |
resourceRenamed(java.lang.String oldid,
java.lang.String newid)
Changes all references to the resource formerly identfied by oldid to the resources newid |
java.lang.String |
returnCode(java.lang.String indent)
Generates the XML code represented by this Layout. |
void |
showOptions()
Shows a dialog to edit this Layout's attributes. |
void |
update()
Updates the Layout's attributes according to the user input. |
boolean |
uses(java.lang.String id_)
Checks whether an item in this layout uses the resource of the given ID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String ID_DEFAULT
public final int MINWIDTH_DEFAULT
public final int MINHEIGHT_DEFAULT
public final int MAXWIDTH_DEFAULT
public final int MAXHEIGHT_DEFAULT
public java.lang.String id
public int minwidth
public int minheight
public int maxwidth
public int maxheight
public int width
public int height
public java.lang.String type
| Constructor Detail |
|---|
public Layout(org.w3c.dom.Node n,
Window w_,
Skin s_)
n - The XML nodew_ - The parent windows_ - The parent skin manager
public Layout(java.lang.String xmlcode,
Window w_,
Skin s_)
xmlcode - The XML code from which the Layout should be created.w_ - The Window to which this Layout will belongs_ - The Skin in which the Layout is used.
public Layout(Window w_,
Skin s_)
w_ - The Window to which this Layout will belongs_ - The Skin in which the Layout is used.| Method Detail |
|---|
public void update()
public void showOptions()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - The action event
public void draw(java.awt.Graphics2D g,
int z)
g - The Graphics2D context onto which the Layout will be drawn.z - The zoom factorpublic java.lang.String returnCode(java.lang.String indent)
indent - Indentation
public javax.swing.tree.DefaultMutableTreeNode getTreeNode()
public Item getItem(java.lang.String id_)
id_ - The ID of the desired Item.
nullis returned.
public java.util.List<Item> getParentListOf(java.lang.String id_)
id_ - The ID of the desired Item.
nullis returned.
Listpublic Item getParentOf(java.lang.String id_)
id_ - The ID of the Item of which one wants the parent.
nullis returned.
public boolean uses(java.lang.String id_)
id_ - The ID of the resource
public void resourceRenamed(java.lang.String oldid,
java.lang.String newid)
oldid - The former ID of the renamed resourcenewid - The new ID of the renamed resourcepublic void renameForCopy(java.lang.String p)
p - The renaming pattern, %oldid% will be replaced by the Layout's/Item's old ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||