org.pietschy.command

Class RenderContext


public class RenderContext
extends java.lang.Object

The RenderContext constains the information about buttons and menus that are created by the library. This includes the command that created the button and the face that was used. If the button or menu was created in the context of a group, then the group is also specified.
Version:
$Revision: 1.7 $
Author:
andrewp

Method Summary

static RenderContext
get(JComponent component)
Gets the rendering context for the specified component, or null if it doesn't have one.
Command
getCommand()
Face
getFace()
String
getFaceName()
CommandGroup
getGroup()
boolean
isFirstMemeber()
boolean
isLastMember()

Method Details

get

public static RenderContext get(JComponent component)
Gets the rendering context for the specified component, or null if it doesn't have one.
Parameters:
component - the component with the renderering context.
Returns:
the rendering context or null if the component doesn't have one.

getCommand

public Command getCommand()

getFace

public Face getFace()

getFaceName

public String getFaceName()

getGroup

public CommandGroup getGroup()

isFirstMemeber

public boolean isFirstMemeber()

isLastMember

public boolean isLastMember()