com.cc.framework.ui.painter.def
Class DefPainterUtility

java.lang.Object
  extended bycom.cc.framework.ui.painter.def.DefPainterUtility

public abstract class DefPainterUtility
extends java.lang.Object

Class DefPainterUtility

Since:
1.0
Version:
$Revision: 1.50 $
Author:
Harald Schulz

Constructor Summary
private DefPainterUtility()
          Constructor
 
Method Summary
static org.apache.ecs.ConcreteElement createCheckBox(PainterContext ctx, java.lang.String key, int checkState, SelectMode selectMode, ClientHandler handler, int size, boolean displayOnly, ActionBehavior behavior)
          renders a CheckBox
static org.apache.ecs.ConcreteElement createCheckButton(PainterContext ctx, java.lang.String key, int checkState, SelectMode selectMode, ClientHandler handler, int size, ActionBehavior behavior)
          renders a CheckBox
static org.apache.ecs.ConcreteElement createCheckImage(PainterContext ctx, int checkState, int size)
          renders a CheckBox
static org.apache.ecs.ConcreteElement createOutline(PainterContext ctx, TreeStyle style, ClientHandler handler, TreeLineIterator iter, java.lang.String label, java.lang.String tooltip, ImageModel icon, int size, ActionBehavior behavior)
          Erzeugt eine Baumstruktur
static ImageModel getItemImage(PainterContext painterContext, LineIterator iter, java.lang.String imageProperty, ImageMap map)
          Method getItemImage
static ImageModel getItemImage(PainterContext painterContext, TreeLineIterator iter, java.lang.String imageProperty, ImageMap map, int size)
          Method getItemImage
private static java.lang.String getStructureResourceId(int image)
          Creates the Resource Id for an Tree structure element
static java.lang.String getTarget(TreeStyle treeStyle, TreeLineIterator iter)
          Returns the Target Attribute which should be included in a HyperLink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefPainterUtility

private DefPainterUtility()
Constructor

Method Detail

getTarget

public static java.lang.String getTarget(TreeStyle treeStyle,
                                         TreeLineIterator iter)
Returns the Target Attribute which should be included in a HyperLink

Parameters:
treeStyle - TreeStyle
iter - TreeLineIterator
Returns:
String

getStructureResourceId

private static java.lang.String getStructureResourceId(int image)
Creates the Resource Id for an Tree structure element

Parameters:
image - Element code
Returns:
Resource Identifier

getItemImage

public static ImageModel getItemImage(PainterContext painterContext,
                                      LineIterator iter,
                                      java.lang.String imageProperty,
                                      ImageMap map)
Method getItemImage

Parameters:
painterContext - the painter context
iter - the Item iterator with the item to paint
imageProperty - Image Property
map - ImageMap
Returns:
Image Model

getItemImage

public static ImageModel getItemImage(PainterContext painterContext,
                                      TreeLineIterator iter,
                                      java.lang.String imageProperty,
                                      ImageMap map,
                                      int size)
Method getItemImage

Parameters:
painterContext - the painter context
iter - the Item iterator with the item to paint
imageProperty - Image Property
map - ImageMap
size - Image size
Returns:
Image Model

createOutline

public static org.apache.ecs.ConcreteElement createOutline(PainterContext ctx,
                                                           TreeStyle style,
                                                           ClientHandler handler,
                                                           TreeLineIterator iter,
                                                           java.lang.String label,
                                                           java.lang.String tooltip,
                                                           ImageModel icon,
                                                           int size,
                                                           ActionBehavior behavior)
Erzeugt eine Baumstruktur

Parameters:
ctx - Painter Context
style - TreeStyle
handler - Java Script Handlers
iter - TreeLineIterator
label - Label (HTML encoded)
tooltip - Tooltip (HTML encoded)
icon - ImageModel
size - The size
behavior - How actions should behave on the client
Returns:
ConcreteElement

createCheckBox

public static org.apache.ecs.ConcreteElement createCheckBox(PainterContext ctx,
                                                            java.lang.String key,
                                                            int checkState,
                                                            SelectMode selectMode,
                                                            ClientHandler handler,
                                                            int size,
                                                            boolean displayOnly,
                                                            ActionBehavior behavior)
renders a CheckBox

Parameters:
ctx - Painter context
key - String
checkState - CheckState true if checked
selectMode - SelectMode
handler - Java Script Handlers
size - Image Size
displayOnly - Indicates that this checkbox should be only for display
behavior - How actions should behave on the client
Returns:
ConcreteElement

createCheckButton

public static org.apache.ecs.ConcreteElement createCheckButton(PainterContext ctx,
                                                               java.lang.String key,
                                                               int checkState,
                                                               SelectMode selectMode,
                                                               ClientHandler handler,
                                                               int size,
                                                               ActionBehavior behavior)
renders a CheckBox

Parameters:
ctx - Painter context
key - String
checkState - CheckState true if checked
selectMode - SelectMode
handler - Java Script Handlers
size - Image Size
behavior - How actions should behave on the client
Returns:
ConcreteElement

createCheckImage

public static org.apache.ecs.ConcreteElement createCheckImage(PainterContext ctx,
                                                              int checkState,
                                                              int size)
renders a CheckBox

Parameters:
ctx - Painter context
checkState - CheckState true if checked
size - Image Size
Returns:
ConcreteElement


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