org.newdawn.asd.isoclient.ui
Class CharCreatePanel

java.lang.Object
  extended byorg.newdawn.glui.components.Component
      extended byorg.newdawn.glui.components.Container
          extended byorg.newdawn.glui.components.Panel
              extended byorg.newdawn.asd.isoclient.ui.CharCreatePanel
All Implemented Interfaces:
ComponentListener

public class CharCreatePanel
extends Panel
implements ComponentListener

A panel allowing creation of a player character


Field Summary
 
Fields inherited from class org.newdawn.glui.components.Container
screen
 
Fields inherited from class org.newdawn.glui.components.Component
background, border, borderColor, hasKeyFocus, holdsFocus, mouseOver, mousePressed, nextFocus, parent, skin, skinTransparent, visible
 
Constructor Summary
CharCreatePanel(CharacterStableState state, Screen screen)
          Create a new panel
 
Method Summary
 void componentActivated(Component source)
          Notification that a particular component has been activated
 Component getFirstFocus()
          Get the component that should be given focus when this panel gets focus
 void setTargetStats(Stats stats)
          Set the statistics that should be displayed and updated in this panel
 
Methods inherited from class org.newdawn.glui.components.Container
add, getDefaultFont, getScreen, remove, renderImpl, updateImpl
 
Methods inherited from class org.newdawn.glui.components.Component
addListener, getActionName, getHeight, getWidth, hasKeyFocus, isVisible, keyPressed, keyReleased, mouseEntered, mouseExited, mousePressed, mouseReleased, notifyComponentActivated, removeListener, render, setActionName, setBackground, setBorder, setDimensions, setHasKeyFocus, setNextKeyFocus, setPadding, setParent, setSkin, setVisible, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharCreatePanel

public CharCreatePanel(CharacterStableState state,
                       Screen screen)
Create a new panel

Parameters:
state - The state we'll report actions to
screen - The screen on which this panel will be displayed
Method Detail

setTargetStats

public void setTargetStats(Stats stats)
Set the statistics that should be displayed and updated in this panel

Parameters:
stats - The statistics to display and update

componentActivated

public void componentActivated(Component source)
Description copied from interface: ComponentListener
Notification that a particular component has been activated

Specified by:
componentActivated in interface ComponentListener
Parameters:
source - The component that was activated
See Also:
ComponentListener.componentActivated(org.newdawn.glui.components.Component)

getFirstFocus

public Component getFirstFocus()
Get the component that should be given focus when this panel gets focus

Returns:
The focusable component