vlcskineditor
Class Window

java.lang.Object
  extended by vlcskineditor.Window
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class Window
extends java.lang.Object
implements java.awt.event.ActionListener

Handles windows and their layouts


Field Summary
 boolean dragdrop
           
 java.lang.String id
           
 java.util.List<Layout> layouts
           
 boolean playondrop
           
 Skin s
           
 java.lang.String type
           
 java.lang.String visible
           
 int x
           
 int y
           
 
Constructor Summary
Window(org.w3c.dom.Node n, Skin s_)
          Parses a window's structure from a given XML node
Window(Skin s_)
           
Window(java.lang.String xmlcode, Skin s_)
          Creates a new instance of Window
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addLayout()
           
 Layout getLayout(java.lang.String id_)
           
 javax.swing.tree.DefaultMutableTreeNode getTreeNode()
           
 void renameForCopy(java.lang.String p)
          Renames the Layout and all its content after the copy process
 java.lang.String returnCode(java.lang.String indent)
           
 void showOptions()
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public java.lang.String id

visible

public java.lang.String visible

x

public int x

y

public int y

dragdrop

public boolean dragdrop

playondrop

public boolean playondrop

layouts

public java.util.List<Layout> layouts

s

public Skin s

type

public java.lang.String type
Constructor Detail

Window

public Window(org.w3c.dom.Node n,
              Skin s_)
Parses a window's structure from a given XML node

Parameters:
n - The window node
s_ - The parent skin manager

Window

public Window(java.lang.String xmlcode,
              Skin s_)
Creates a new instance of Window


Window

public Window(Skin s_)
Method Detail

update

public void update()

showOptions

public void showOptions()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

addLayout

public void addLayout()

returnCode

public java.lang.String returnCode(java.lang.String indent)

getLayout

public Layout getLayout(java.lang.String id_)

getTreeNode

public javax.swing.tree.DefaultMutableTreeNode getTreeNode()

renameForCopy

public void renameForCopy(java.lang.String p)
Renames the Layout and all its content after the copy process