org.pietschy.command
Class RenderContext
java.lang.Object
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.
get
public static RenderContext get(JComponent component)
Gets the rendering context for the specified component, or null if it doesn't
have one.
component
- the component with the renderering context.
- the rendering context or null if the component doesn't have one.
getCommand
public Command getCommand()
getFace
public Face getFace()
getFaceName
public String getFaceName()
isFirstMemeber
public boolean isFirstMemeber()
isLastMember
public boolean isLastMember()