net.codescore.ui.components.parts
Class ProblemDetail

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.parts.ProblemDetail
All Implemented Interfaces:
Serializable, Cloneable, Component, IdSpace, ComponentCtrl

public class ProblemDetail
extends Window

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zul.Window
Window.ExtraCtrl
 
Field Summary
private  Groupbox casesBox
           
private  Groupbox commBox
           
private  Groupbox descBox
           
private  Html description
           
private  Problem prob
           
private  Window sampIn
           
private  Groupbox sampleBox
           
private  Window sampOut
           
private  boolean showComments
           
private  boolean showSampleData
           
private  boolean showSolution
           
private  boolean showTestCases
           
private  Groupbox solutionsBox
           
 
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
ProblemDetail(Problem p)
           
ProblemDetail(Problem p, boolean sampData, boolean comments, boolean testCases, boolean solutions)
           
 
Method Summary
private  void initComments()
           
private  void initDesc()
           
private  void initSamples()
           
private  void initSolutions()
           
private  void initTestCases()
           
 void onAddComment()
           
 
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

commBox

private Groupbox commBox

casesBox

private Groupbox casesBox

solutionsBox

private Groupbox solutionsBox

descBox

private Groupbox descBox

sampleBox

private Groupbox sampleBox

description

private Html description

prob

private final Problem prob

sampIn

private Window sampIn

sampOut

private Window sampOut

showSampleData

private boolean showSampleData

showComments

private boolean showComments

showTestCases

private boolean showTestCases

showSolution

private boolean showSolution
Constructor Detail

ProblemDetail

public ProblemDetail(Problem p)

ProblemDetail

public ProblemDetail(Problem p,
                     boolean sampData,
                     boolean comments,
                     boolean testCases,
                     boolean solutions)
Method Detail

onAddComment

public void onAddComment()

initComments

private void initComments()

initDesc

private void initDesc()

initSamples

private void initSamples()

initSolutions

private void initSolutions()

initTestCases

private void initTestCases()


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