org.pietschy.command
Class RenderContext

java.lang.Object
  extended by org.pietschy.command.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(javax.swing.JComponent component)
          Gets the rendering context for the specified component, or null if it doesn't have one.
 Command getCommand()
           
 Face getFace()
           
 java.lang.String getFaceName()
           
 CommandGroup getGroup()
           
 boolean isFirstMemeber()
           
 boolean isLastMember()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static RenderContext get(javax.swing.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()

getFaceName

public java.lang.String getFaceName()

getFace

public Face getFace()

getGroup

public CommandGroup getGroup()

isFirstMemeber

public boolean isFirstMemeber()

isLastMember

public boolean isLastMember()