com.cc.framework.ui.painter
Interface FramePainter

All Known Implementing Classes:
DefFramePainterBase

public interface FramePainter

A FramePainter is responsible for painting the Frame of a Control element

Version:
$Revision: 1.5 $
Author:
Harald Schulz

Method Summary
 void addSection(Frame frame, FrameTitle title, boolean showFrame)
          Adds a new titled section to the given frame
 Frame createFrame(boolean showFrame)
          Creates a frame
 Frame createFrame(FrameTitle title, boolean showFrame)
          Creates a frame with a title bar
 Frame createInnerFrame(boolean showFrame)
          Creates a inner frame
 Frame createInnerFrame(InnerFrame innerFrame)
          Creates a inner frame
 org.apache.ecs.ConcreteElement createTitle(FrameTitle title, boolean showFrame)
          Creates the title of the frame.
 void setControlPainter(ControlPainter ctrlPainter)
          Sets the ControlPainter.
 

Method Detail

setControlPainter

public void setControlPainter(ControlPainter ctrlPainter)
Sets the ControlPainter. The Control Painter gives access to the PainterContext

Parameters:
ctrlPainter - The Control Painter

createInnerFrame

public Frame createInnerFrame(boolean showFrame)
Creates a inner frame

Parameters:
showFrame - This flag indicates if the painter should create a visible or invisible frame
Returns:
Frame element

createInnerFrame

public Frame createInnerFrame(InnerFrame innerFrame)
Creates a inner frame

Parameters:
innerFrame - Attributes of the inner frame
Returns:
Frame element

createFrame

public Frame createFrame(boolean showFrame)
Creates a frame

Parameters:
showFrame - This flag indicates if the painter should create a visible or invisible frame
Returns:
Frame element

createFrame

public Frame createFrame(FrameTitle title,
                         boolean showFrame)
Creates a frame with a title bar

Parameters:
title - The frames title
showFrame - This flag indicates if the painter should create a visible or invisible frame
Returns:
Frame element

addSection

public void addSection(Frame frame,
                       FrameTitle title,
                       boolean showFrame)
Adds a new titled section to the given frame

Parameters:
frame - the frame where to add a new section
title - The frames title
showFrame - This flag indicates if the painter should create a visible or invisible frame

createTitle

public org.apache.ecs.ConcreteElement createTitle(FrameTitle title,
                                                  boolean showFrame)
Creates the title of the frame.

Parameters:
title - The frames title
showFrame - This flag indicates if the painter should create a visible or invisible frame
Returns:
ConcreteElement


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