com.monad.homerun.view
Class View

java.lang.Object
  extended by com.monad.homerun.view.View
All Implemented Interfaces:
java.io.Serializable

public class View
extends java.lang.Object
implements java.io.Serializable

A View is a visual representation of a HomeRun component, located within a region of a Scene. The component is typically a model, with either one or multiple objects models states/values shown, but may be an image, a system state, etc

See Also:
Serialized Form

Constructor Summary
View()
           
View(java.lang.String type, java.lang.String domain, java.lang.String selector, java.lang.String compName, int format)
           
 
Method Summary
 java.lang.String getCompName()
          Returns the name of the component in the view
 java.lang.String getDomain()
          Returns the domain of the view component
 int getFormat()
          Returns an integer with formatting instructions
 java.lang.String getSelector()
          Returns the component selector, usually the object name
 java.lang.String getType()
          Returns the type of the view, whch may be model, image, etc
 boolean hasOption(int option)
          Returns whether view has the given format option
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

public View()

View

public View(java.lang.String type,
            java.lang.String domain,
            java.lang.String selector,
            java.lang.String compName,
            int format)
Method Detail

getType

public java.lang.String getType()
Returns the type of the view, whch may be model, image, etc

Returns:
type the view type

getDomain

public java.lang.String getDomain()
Returns the domain of the view component

Returns:
domain the view component domain

getSelector

public java.lang.String getSelector()
Returns the component selector, usually the object name

Returns:
selector the component selector

getCompName

public java.lang.String getCompName()
Returns the name of the component in the view

Returns:
component the view component name

getFormat

public int getFormat()
Returns an integer with formatting instructions

Returns:
format the formatting instructions for the view

hasOption

public boolean hasOption(int option)
Returns whether view has the given format option

Returns:
true if view has format option the formatting instructions for the view


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.