com.jmex.bui
Class BCheckBox

java.lang.Object
  extended by com.jmex.bui.BComponent
      extended by com.jmex.bui.BTextComponent
          extended by com.jmex.bui.BLabel
              extended by com.jmex.bui.BButton
                  extended by com.jmex.bui.BToggleButton
                      extended by com.jmex.bui.BCheckBox
All Implemented Interfaces:
BConstants

public class BCheckBox
extends BToggleButton

Displays a label with a check-box button next to it.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jmex.bui.BLabel
BLabel.Fit
 
Field Summary
protected  BIcon[] _icons
           
 
Fields inherited from class com.jmex.bui.BToggleButton
_selected, DISSELECTED, SELECTED, STATE_COUNT, STATE_PCLASSES
 
Fields inherited from class com.jmex.bui.BButton
_action, _armed, _pressed, DOWN
 
Fields inherited from class com.jmex.bui.BLabel
_label
 
Fields inherited from class com.jmex.bui.BTextComponent
_effcols, _effsizes, _haligns, _lineSpacings, _teffects, _textfacts, _valigns
 
Fields inherited from class com.jmex.bui.BComponent
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER
 
Fields inherited from interface com.jmex.bui.BConstants
BOTTOM, CENTER, DEFAULT_SIZE, DEFAULT_SPACING, GLOW, HORIZONTAL, LEFT, NORMAL, OUTLINE, OVERLAPPING, PLAIN, RIGHT, SHADOW, TOP, VERTICAL
 
Constructor Summary
BCheckBox(String label)
           
 
Method Summary
protected  void configureStyle(BStyleSheet style)
          Instructs this component to fetch its style configuration from the supplied style sheet.
protected  String getDefaultStyleClass()
          Returns the default stylesheet class to be used for all instances of this component.
protected  void stateDidChange()
          Called when the component's state has changed.
 
Methods inherited from class com.jmex.bui.BToggleButton
fireAction, getState, getStateCount, getStatePseudoClass, isSelected, setSelected
 
Methods inherited from class com.jmex.bui.BButton
dispatchEvent, getAction, setAction
 
Methods inherited from class com.jmex.bui.BLabel
computePreferredSize, getFit, getIcon, getIconTextGap, getText, layout, renderComponent, setFit, setIcon, setIconTextGap, setOrientation, setText, wasAdded, wasRemoved
 
Methods inherited from class com.jmex.bui.BTextComponent
checkNonDefault, checkNonDefaultInt, checkNonDefaultVal, getEffectColor, getEffectSize, getHorizontalAlignment, getLabelConfig, getLineSpacing, getTextEffect, getTextFactory, getTextFactory, getVerticalAlignment
 
Methods inherited from class com.jmex.bui.BComponent
acceptsFocus, addListener, applyDefaultStates, boundsToString, changeCursor, createTooltipComponent, emitEvent, getAbsoluteX, getAbsoluteY, getAlpha, getBackground, getBorder, getBounds, getColor, getCursor, getFocusTarget, getHeight, getHitComponent, getInsets, getNextFocus, getParent, getPreferredSize, getPreviousFocus, getProperty, getStyleClass, getTooltipText, getWidth, getWindow, getX, getY, hasFocus, intersectScissorBox, invalidate, isAdded, isEnabled, isShowing, isTooltipRelativeToMouse, isValid, isVisible, removeAllListeners, removeListener, render, renderBackground, renderBorder, requestFocus, restoreScissorState, setAlpha, setBackground, setBounds, setCursor, setEnabled, setLocation, setParent, setPreferredSize, setPreferredSize, setProperty, setSize, setStyleClass, setTooltipRelativeToMouse, setTooltipText, setVisible, updateCursor, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_icons

protected BIcon[] _icons
Constructor Detail

BCheckBox

public BCheckBox(String label)
Method Detail

getDefaultStyleClass

protected String getDefaultStyleClass()
Description copied from class: BComponent
Returns the default stylesheet class to be used for all instances of this component. Derived classes will likely want to override this method and set up a default class for their type of component.

Overrides:
getDefaultStyleClass in class BButton

configureStyle

protected void configureStyle(BStyleSheet style)
Description copied from class: BComponent
Instructs this component to fetch its style configuration from the supplied style sheet. This method is called when a component is added to the interface hierarchy.

Overrides:
configureStyle in class BButton

stateDidChange

protected void stateDidChange()
Description copied from class: BComponent
Called when the component's state has changed.

Overrides:
stateDidChange in class BComponent


Copyright © 2008 Michael Bayne. All Rights Reserved.