com.cc.framework.ui.model
Class InnerFrame

java.lang.Object
  extended bycom.cc.framework.ui.model.InnerFrame
All Implemented Interfaces:
AccessControlled, java.io.Serializable

public class InnerFrame
extends java.lang.Object
implements AccessControlled, java.io.Serializable

Group of form elements

Version:
$Revision: 1.5 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  boolean border
          Enables or disables the frames border
private  java.lang.String content
          The Frames content
private  java.lang.String height
          The height of the form element
private  java.lang.Object layoutHint
          Optional layout hint for this frame
private  Permission permission
          permissions for the element
private static long serialVersionUID
          Serial Version UID
private  java.lang.String style
          HTML-Style
private  java.lang.String styleClass
          Style Class -> HTML class Attribute
private  java.lang.String styleId
          Style ID
private  java.lang.String summary
          Text that is used for rendering to non-visual media such as speech or Braille
private  java.lang.String width
          The width of the form element
 
Constructor Summary
InnerFrame()
           
 
Method Summary
 java.lang.String getContent()
           
 java.lang.String getHeight()
          Returns the height of the frame element (pixel or %)
 java.lang.Object getLayoutHint()
          Retrieves the layout hint that is associated with this frame
 Permission getPermission()
          Returns the authorizations required to access an object If the method returns null no access rights is required.
 java.lang.String getStyle()
          Returns the Style
 java.lang.String getStyleClass()
          Returns the StyleClass
 java.lang.String getStyleId()
          returns the StyleId
 java.lang.String getSummary()
          Retrieves the property that can be used for rendering to non-visual media such as speech or Braille
 java.lang.String getWidth()
          Returns the width of the frame element (pixel or %)
 void setBorder(boolean border)
          Disables the frames border
 void setContent(java.lang.String content)
           
 void setHeight(java.lang.String height)
          Sets the height of the frame element (pixel or %)
 void setLayoutHint(java.lang.Object hint)
          Assigns a layout hint to this inner frame
 void setPermission(Permission permission)
          Sets the elements permission
 void setStyle(java.lang.String style)
          Sets the Style
 void setStyleClass(java.lang.String styleClass)
          Sets the StyleClass
 void setStyleId(java.lang.String styleId)
          Sets the StyleId
 void setSummary(java.lang.String summary)
          Sets the property that can be used for rendering to non-visual media such as speech or Braille
 void setWidth(java.lang.String width)
          Sets the width of the frame element (pixel or %)
 boolean show(Principal principal)
          Checks if the Object has a required permission.
 boolean showBorder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

height

private java.lang.String height
The height of the form element


width

private java.lang.String width
The width of the form element


styleId

private java.lang.String styleId
Style ID


styleClass

private java.lang.String styleClass
Style Class -> HTML class Attribute


style

private java.lang.String style
HTML-Style


border

private boolean border
Enables or disables the frames border


permission

private Permission permission
permissions for the element


content

private java.lang.String content
The Frames content


summary

private java.lang.String summary
Text that is used for rendering to non-visual media such as speech or Braille


layoutHint

private java.lang.Object layoutHint
Optional layout hint for this frame

Constructor Detail

InnerFrame

public InnerFrame()
Method Detail

getPermission

public Permission getPermission()
Description copied from interface: AccessControlled
Returns the authorizations required to access an object If the method returns null no access rights is required.

Specified by:
getPermission in interface AccessControlled
Returns:
Permission A list with required permissions separated by ";"
See Also:
AccessControlled.getPermission()

setPermission

public void setPermission(Permission permission)
Sets the elements permission

Parameters:
permission - required permission

show

public boolean show(Principal principal)
Description copied from interface: AccessControlled
Checks if the Object has a required permission.

Specified by:
show in interface AccessControlled
Parameters:
principal - the users principal object
Returns:
true if the permission exists
See Also:
AccessControlled.show(Principal)

getHeight

public java.lang.String getHeight()
Returns the height of the frame element (pixel or %)

Returns:
height

getWidth

public java.lang.String getWidth()
Returns the width of the frame element (pixel or %)

Returns:
width

setHeight

public void setHeight(java.lang.String height)
Sets the height of the frame element (pixel or %)

Parameters:
height - The Height

setWidth

public void setWidth(java.lang.String width)
Sets the width of the frame element (pixel or %)

Parameters:
width - The Width

getStyle

public java.lang.String getStyle()
Returns the Style

Returns:
String

getStyleId

public java.lang.String getStyleId()
returns the StyleId

Returns:
string

getStyleClass

public java.lang.String getStyleClass()
Returns the StyleClass

Returns:
String

setStyle

public void setStyle(java.lang.String style)
Sets the Style

Parameters:
style - style constant

setStyleId

public void setStyleId(java.lang.String styleId)
Sets the StyleId

Parameters:
styleId - HTML-Id of the element

setStyleClass

public void setStyleClass(java.lang.String styleClass)
Sets the StyleClass

Parameters:
styleClass - StyleClass

setBorder

public void setBorder(boolean border)
Disables the frames border

Parameters:
border - true if the border should be shown

showBorder

public boolean showBorder()
Returns:
true if the border should be shown

getContent

public java.lang.String getContent()
Returns:
The Content of the inner frame (raw HTML code)

setContent

public void setContent(java.lang.String content)
Parameters:
content - The raw HTML content of the inner frame

setSummary

public void setSummary(java.lang.String summary)
Sets the property that can be used for rendering to non-visual media such as speech or Braille

Parameters:
summary - specifies a description and/or structure of the object.

getSummary

public java.lang.String getSummary()
Retrieves the property that can be used for rendering to non-visual media such as speech or Braille

Returns:
receives a description and/or structure of the object or null

getLayoutHint

public java.lang.Object getLayoutHint()
Retrieves the layout hint that is associated with this frame

Returns:
layout hint or null

setLayoutHint

public void setLayoutHint(java.lang.Object hint)
Assigns a layout hint to this inner frame

Parameters:
hint - layout hint or null


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.