|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.FlowPanel
org.gwtwidgets.client.ui.SimpleCalcPanel
public class SimpleCalcPanel
A simple calculator panel. The panel follows the template design pattern, which should make it fairly easy to change the layout and behavior by extending the class. A default set of styles are provided when including the following style-sheet declaration in your HTML file.
| Constructor Summary | |
|---|---|
SimpleCalcPanel()
|
|
| Method Summary | |
|---|---|
protected void |
buildCalcLayout(CalcEngine calcEngine,
com.google.gwt.user.client.ui.TextBox textDisplay)
|
void |
clearValue()
|
protected void |
createCalc(CalcDisplayListener cdl,
com.google.gwt.user.client.ui.TextBox textDisplay)
|
protected CalcDisplayListener |
createDisplayListener(com.google.gwt.user.client.ui.TextBox textDisplay)
|
protected com.google.gwt.user.client.ui.TextBox |
createTextDisplay()
|
java.lang.String |
getValue()
|
protected void |
init()
|
protected void |
initComplete()
|
protected void |
setKeyboardListener(com.google.gwt.user.client.ui.TextBox textDisplay)
|
| Methods inherited from class com.google.gwt.user.client.ui.FlowPanel |
|---|
add, insert |
| Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
|---|
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, insert, iterator, remove, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
getParent, isAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setElement |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleCalcPanel()
| Method Detail |
|---|
protected void init()
protected CalcDisplayListener createDisplayListener(com.google.gwt.user.client.ui.TextBox textDisplay)
protected void setKeyboardListener(com.google.gwt.user.client.ui.TextBox textDisplay)
protected void initComplete()
protected void createCalc(CalcDisplayListener cdl,
com.google.gwt.user.client.ui.TextBox textDisplay)
protected com.google.gwt.user.client.ui.TextBox createTextDisplay()
protected void buildCalcLayout(CalcEngine calcEngine,
com.google.gwt.user.client.ui.TextBox textDisplay)
public java.lang.String getValue()
public void clearValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||