net.codescore.ui.admin.probs
Class ProblemWindow

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zk.ui.HtmlBasedComponent
          extended by org.zkoss.zul.impl.XulElement
              extended by org.zkoss.zul.Window
                  extended by net.codescore.ui.components.windows.AppWindow
                      extended by net.codescore.ui.components.windows.ContextWindow
                          extended by net.codescore.ui.admin.probs.ProblemWindow
All Implemented Interfaces:
Serializable, Cloneable, Component, IdSpace, ComponentCtrl

public class ProblemWindow
extends ContextWindow

This class can edit a problem

Author:
Adam Cornett
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zul.Window
Window.ExtraCtrl
 
Field Summary
private  Grid grid
           
private  Problem prob
           
private  Rows rows
           
private static long serialVersionUID
           
 
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH
 
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
 
Constructor Summary
ProblemWindow(Problem p)
           
 
Method Summary
private  void addRow(String label, Component b)
           
private  void initActiveCheck()
           
private  void initSampInput()
           
private  void initSampOutput()
           
private  void initUnixNameBox()
           
 void onActiveChange(CheckEvent e)
           
 void onAddTC()
           
 void onCancel()
           
 void onDescChange(InputEvent e)
           
 void onOk()
           
 void onSInChange(InputEvent e)
           
 void onSOutChange(InputEvent e)
           
 void onUnixNameChange(InputEvent e)
           
 
Methods inherited from class net.codescore.ui.components.windows.ContextWindow
getObjectContext
 
Methods inherited from class net.codescore.ui.components.windows.AppWindow
getRequest, getSession, getUserName, userHasRole
 
Methods inherited from class org.zkoss.zul.Window
clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getCtrlKeys, getDefaultActionOnShow, getMode, getOuterAttrs, getPosition, getRealStyle, getSclass, getTitle, getTitleSclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isSizable, newExtraCtrl, onChildRemoved, onClose, onModal, setBorder, setClosable, setContentSclass, setContentStyle, setCtrlKeys, setDefaultActionOnShow, setDraggable, setMode, setMode, setPage, setParent, setPosition, setSclass, setSizable, setTitle, setVisible
 
Methods inherited from class org.zkoss.zul.impl.XulElement
getAction, getActionAttrs, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setContext, setPopup, setPopup, setTooltip, setTooltip
 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
focus, getAllOnClickAttrs, getDraggable, getDroppable, getHeight, getLeft, getRealSclass, getRealStyleFlags, getStyle, getTooltiptext, getTop, getWidth, getZIndex, setClass, setDroppable, setFocus, setHeight, setLeft, setStyle, setTooltiptext, setTop, setWidth, setZIndex
 
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addEventHandler, addEventListener, addForward, addForward, addMoved, addSharedAnnotationMap, addSharedEventHandlerMap, appendAsapAttr, appendAsapAttr, appendChild, applyProperties, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getCommand, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getExtraCtrl, getFellow, getFellowIfAny, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getMoldURI, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, invalidate, isAsapRequired, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onDrawNewChild, onPageAttached, onPageDetached, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPageBefore, setVariable, smartUpdate, smartUpdate, smartUpdate, smartUpdateDeferred, smartUpdateValues, toString, unsetVariable
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.zkoss.zk.ui.IdSpace
getFellow, getFellowIfAny
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

grid

private final Grid grid

prob

private final Problem prob

rows

private final Rows rows
Constructor Detail

ProblemWindow

public ProblemWindow(Problem p)
Method Detail

onActiveChange

public void onActiveChange(CheckEvent e)

onAddTC

public void onAddTC()

onCancel

public void onCancel()

onDescChange

public void onDescChange(InputEvent e)

onOk

public void onOk()

onSInChange

public void onSInChange(InputEvent e)

onSOutChange

public void onSOutChange(InputEvent e)

onUnixNameChange

public void onUnixNameChange(InputEvent e)

addRow

private void addRow(String label,
                    Component b)

initActiveCheck

private void initActiveCheck()

initSampInput

private void initSampInput()

initSampOutput

private void initSampOutput()

initUnixNameBox

private void initUnixNameBox()


Copyright 2008 © Adam Cornett, Andrew Conner All Rights Reserved.