org.springframework.extensions.surf.studio
Class BrowserStateBean

java.lang.Object
  extended by org.springframework.extensions.surf.studio.BrowserStateBean
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AppletStateBean, ApplicationStateBean

public class BrowserStateBean
extends Object
implements Serializable

Implementation class for a Web Studio applet.

Author:
muzquiano
See Also:
Serialized Form

Constructor Summary
BrowserStateBean(String id)
          Instantiates a new applet state bean.
 
Method Summary
 void addCssFile(String file)
          Adds the css file.
 void addDomFile(String file)
          Adds the dom file.
 void addJsFile(String file)
          Adds the js file.
 void clearDependencies()
          Clears all file dependencies
 void disable()
          Disables this browser component
 void enable()
          Enables this browser component
 String get(String key)
          Retrieves a property from this element
 String getClassname()
          Gets the classname.
 String[] getCssFiles()
          Gets the css files.
 String getDescription()
          Gets the description.
 String[] getDomFiles()
          Gets the dom files.
 String getId()
          Gets the id.
 String[] getJsFiles()
          Gets the js files.
 Map<String,String> getProperties()
          Returns the map of all properties
 String getTitle()
          Gets the title.
 boolean isEnabled()
          Returns whether this browser component is enabled
 void put(String key, String value)
          Stores a property onto this element
 void remove(String key)
          Removes a property from this element
 void removeProperties()
          Removes all properties
 void setClassname(String className)
          Sets the classname.
 void setDescription(String description)
          Sets the description.
 void setTitle(String title)
          Sets the title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserStateBean

public BrowserStateBean(String id)
Instantiates a new applet state bean.

Parameters:
id - the id
Method Detail

getId

public String getId()
Gets the id.

Returns:
the id

getTitle

public String getTitle()
Gets the title.

Returns:
the title

setTitle

public void setTitle(String title)
Sets the title.

Parameters:
title - the new title

getDescription

public String getDescription()
Gets the description.

Returns:
the description

setDescription

public void setDescription(String description)
Sets the description.

Parameters:
description - the new description

getJsFiles

public String[] getJsFiles()
Gets the js files.

Returns:
the js files

addJsFile

public void addJsFile(String file)
Adds the js file.

Parameters:
file - the file

getCssFiles

public String[] getCssFiles()
Gets the css files.

Returns:
the css files

addCssFile

public void addCssFile(String file)
Adds the css file.

Parameters:
file - the file

getDomFiles

public String[] getDomFiles()
Gets the dom files.

Returns:
the dom files

addDomFile

public void addDomFile(String file)
Adds the dom file.

Parameters:
file - the file

getClassname

public String getClassname()
Gets the classname.

Returns:
the classname

setClassname

public void setClassname(String className)
Sets the classname.

Parameters:
className - the new classname

put

public void put(String key,
                String value)
Stores a property onto this element

Parameters:
key - the key
value - the value

get

public String get(String key)
Retrieves a property from this element

Parameters:
key - the key

getProperties

public Map<String,String> getProperties()
Returns the map of all properties

Returns:
properties

remove

public void remove(String key)
Removes a property from this element

Parameters:
key -

removeProperties

public void removeProperties()
Removes all properties


enable

public void enable()
Enables this browser component


disable

public void disable()
Disables this browser component


isEnabled

public boolean isEnabled()
Returns whether this browser component is enabled

Returns:
enabled or not

clearDependencies

public void clearDependencies()
Clears all file dependencies



Copyright © 2009 SpringSource, Inc. All Rights Reserved.