is.idega.idegaweb.golf.startingtime.presentation
Class TeeTimeTable

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by com.idega.presentation.PresentationObject
              extended by com.idega.presentation.PresentationObjectContainer
                  extended by com.idega.presentation.Block
                      extended by is.idega.idegaweb.golf.presentation.GolfBlock
                          extended by is.idega.idegaweb.golf.startingtime.presentation.TeeTimeTable
All Implemented Interfaces:
com.idega.event.IWPageEventListener, com.idega.idegaweb.block.presentation.Builderaware, com.idega.presentation.PresentationObjectType, java.lang.Cloneable, java.util.EventListener, javax.faces.component.StateHolder

public class TeeTimeTable
extends GolfBlock
implements com.idega.event.IWPageEventListener

Title: TeeTimeSearch Description: Copyright: Copyright (c) 2004 Company: idega Software

Version:
1.0
Author:
2004 - idega team -
Gudmundur Agust Saemundsson

Field Summary
static int ACTION_HANDICAP_ROUND
           
static int ACTION_HANDICAP_ROUND_REMOVE
           
static int ACTION_UNREGISTER
           
static java.lang.String PARAMETER_ACTION
           
static java.lang.String PARAMETER_DATE
           
static java.lang.String PARAMETER_DAYTIME
           
static java.lang.String PARAMETER_FIELD
           
static java.lang.String PARAMETER_GROUP_NUMBER
           
static java.lang.String PARAMETER_MEMBER_MAIN_UNION
           
static java.lang.String PARAMETER_NUMBER_OF_GOLFERS
           
static java.lang.String PARAMETER_NUMBER_OF_HOLES
           
static java.lang.String PARAMETER_TEE_TIME
           
static java.lang.String PARAMETER_TIME_OF_DAY
           
static java.lang.String PARAMETER_UNION
           
static java.lang.String SESSION_CLUB
           
 
Fields inherited from class is.idega.idegaweb.golf.presentation.GolfBlock
PARAMETER_MEMBER, PARAMETER_MEMBER_LOGIN, PRM_PARENT_PREFIX
 
Fields inherited from class com.idega.presentation.Block
IW_BLOCK_CACHE_KEY, usingNewAcessControlSystem
 
Fields inherited from class com.idega.presentation.PresentationObjectContainer
_label, _locked, allObjects
 
Fields inherited from class com.idega.presentation.PresentationObject
_listenerList, attributes, childrenList, CLICK, COMPOUNDID_CHILD_NUMBER_DELIMITER, COMPOUNDID_COMPONENT_DELIMITER, CORE_IW_BUNDLE_IDENTIFIER, eventLocationString, facetMap, hasBeenAdded, HEIGHT, HORIZONTAL_ALIGNMENT, initializedInMain, listenerList, NULL_CLONE_OBJECT, sessionEventStorageName, slash, TARGET_OBJ_INS, treeID, WIDTH
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface com.idega.idegaweb.block.presentation.Builderaware
IW_CORE_BUNDLE_IDENTIFIER
 
Constructor Summary
TeeTimeTable()
           
 
Method Summary
 boolean actionPerformed(com.idega.presentation.IWContext iwc)
           
protected  com.idega.presentation.TableCell2 getCell(com.idega.presentation.TableRow row, java.lang.String styleClass)
           
 com.idega.presentation.Layer getNavigation(com.idega.presentation.IWContext iwc, com.idega.presentation.ui.Form form, com.idega.util.IWCalendar dateFunc, java.util.Map<com.idega.util.IWTimestamp,GolfField> Today, boolean admin, boolean isInUnion)
           
 TableInfo getTableInfo(GolfField start, GolfField end, int daytime)
           
 com.idega.presentation.ui.Form getTeeTimes(com.idega.presentation.IWContext iwc, com.idega.util.IWCalendar funcDate, boolean hasAdminRole)
           
 com.idega.core.builder.data.ICPage getTeeTimeSearchPage()
           
 com.idega.core.builder.data.ICPage getTeeTimesPage()
           
 com.idega.presentation.Table2 getTeeTimeTable(java.util.Map<com.idega.util.IWTimestamp,GolfField> configs, java.util.Map<com.idega.util.IWTimestamp,GolfField> todayConfigs, TableInfo myTableInfo, java.util.Vector tournamentGroups, com.idega.presentation.IWContext iwc)
           
 java.lang.String getTournamentName(java.util.Vector rounds, int groupNumber)
           
 com.idega.presentation.ui.DropdownMenu insertDropdown(java.lang.String dropdownName, int countFrom, int countTo)
           
 com.idega.presentation.ui.InterfaceObject insertDropdown(java.lang.String dropdownName, com.idega.util.IWCalendar funcDate, GolfField today, com.idega.presentation.IWContext iwc, boolean isInUnion)
           
 com.idega.presentation.ui.DropdownMenu insertDropdown(java.lang.String dropdownName, com.idega.presentation.IWContext iwc)
           
 com.idega.presentation.ui.DropdownMenu insertDrowdown(java.lang.String dropdownName, TableInfo myTableInfo, com.idega.presentation.IWContext iwc, java.util.Vector torunamentRounds)
           
 boolean isMemberBlackListed(java.lang.String union)
           
 boolean isMemberOfUnion(com.idega.presentation.IWContext iwc, java.lang.String union)
           
 boolean isTournamentGroup(java.util.Vector rounds, int groupNumber)
           
 boolean isUser(com.idega.presentation.IWContext iwc)
           
 void main(com.idega.presentation.IWContext iwc)
           
 void setTeeTimeSearchPage(com.idega.core.builder.data.ICPage p)
           
 void setTeeTimesPage(com.idega.core.builder.data.ICPage p)
           
 
Methods inherited from class is.idega.idegaweb.golf.presentation.GolfBlock
_main, addHeading, freeConnection, getBundle, getBundleIdentifier, getConnection, getJQuery, getMember, getMember, getMember, getMember, getMemberHome, getMemberID, getParentReloadURL, getResourceBundle, getTournamentBusiness, getTournamentSession, getUnionID, getWeb2Business, getWeb2Business, hasParentToReloadURL, initParentReloadURL, isAdmin, isClubAdmin, isClubWorker, isDeveloper, isUser, localize, localize, maintainParentReloadURL, removeUnionIdSessionAttribute, setDefaultParentReloadURL
 
Methods inherited from class com.idega.presentation.Block
autoCreateGlobalHoverStyles, beginCacheing, clone, clonePermissionChecked, decode, deleteBlock, encodeBegin, encodeEnd, endCacheing, getCacheableObject, getCacheKey, getCachePrefixString, getCacheState, getComponentType, getDerivedCacheKey, getLocalizedName, getLocalizedNameKey, getLocalizedNameValue, getModuleName, getPermissionKeys, getPermissionKeys, getPermissionKeys, getStyleLink, getStyleLink, getStyleName, getStyleNames, getStyleObject, getStyleText, getStyleText, getTargetObjectInstance, getWidth, hasEditPermission, hasPermission, invalidateCache, invalidateCache, invalidateCache, isAdministrator, isCacheable, isCacheValid, isContainer, isDeveloper, isMemberOf, isTarget, print, printPreCachedContent, registerPermissionKey, registerPermissionKeys, resetGoneThroughMainInRestore, restoreState, saveState, setAsObjectInstanceTarget, setCacheable, setCacheable, setCacheable, setDefaultWidth, setStyle, setTargetObjectInstance, setToDebugParameters, setWidth
 
Methods inherited from class com.idega.presentation.PresentationObjectContainer
add, add, add, add, add, add, addAtBeginning, addBreak, addChild, addChild, addObject, addText, addText, addText, clearChildren, clone, cloneJSFChildren, cloneJSFFacets, encodeChildren, getChild, getChildren, getChildrenCount, getChildrenRecursive, getContainedLabeledObject, getContainedObject, getContainedObject, getIndex, getLabel, initVariables, insertAt, isEmpty, isLocked, lock, numberOfObjects, objectAt, remove, remove, removeAll, removeChild, resetAllContainedObjectsRecursive, set, setChildren, setLabel, setLocation, unlock
 
Methods inherited from class com.idega.presentation.PresentationObject
_print, addActionListener, addIWActionListener, addIWLinkListener, addIWSubmitListener, addMarkupAttributes, allowPagePermissionInheritance, callMain, callPrint, castToIWContext, changeInstanceIdForInheritedObject, changeState, cleanVariables, cloneJSFFacets, clonePermissionChecked, debug, debugEventListanerList, debugParameters, dispatchEvent, doPrint, empty, encodeSpecialRequestString, endEvent, equals, equals, fireEvent, flush, generateID, getAssociatedScript, getAttribute, getAttributeMap, getAttributes, getAttributesString, getBelongsToParent, getBuilderName, getBuilderService, getBundle, getChangeInstanceIDOnInheritance, getChildCount, getClassName, getComponentId, getCompoundId, getDebugLogLevel, getDefaultLogLevel, getDefaultState, getErrorLogLevel, getErrorMessage, getEventAttribute, getEventIWContext, getEventListener, getEventListenerList, getEventListenerList, getExpressionValue, getFacet, getFacets, getFacetsAndChildren, getFamily, getHeight, getHorizontalAlignment, getICFileSystem, getICInstance, getICObject, getICObject, getICObjectID, getICObjectID, getICObjectInstance, getICObjectInstance, getICObjectInstanceID, getICObjectInstanceID, getId, getID, getIWApplicationContext, getIWLinkListeners, getIWSubmitListeners, getIWUserContext, getLanguage, getLocalizedString, getLocalizedString, getLocation, getLogger, getMarkupAttribute, getMarkupAttributes, getMarkupAttributesString, getMarkupLanguage, getName, getParent, getParentForm, getParentObject, getParentObjectInstance, getParentObjectInstanceID, getParentPage, getParentPageID, getPrintWriter, getRendersChildren, getRequest, getResourceBundle, getResponse, getRootParent, getSetApplicationMarkupLanguage, getState, getStateInstance, getStyleAttribute, getStyleClass, getTemplateId, getTemplateObject, getTitle, getToolTip, getUseBuilderObjectControl, getUserProperties, getValueBindingByAttributeExp, getXmlId, goneThroughRenderPhase, initializeInMain, initInMain, isHeightSet, isMarkupAttributeSet, isRendered, isRestoredFromState, isWidthSet, isXhtmlSet, listenerAdded, listenerAdded, log, log, log, logConfig, logDebug, logError, logSevere, logWarning, mayGoThroughMain, prepareClone, print, println, processDecodes, processEvent, processIWLinkEvent, processIWSubmitEvent, processRestoreState, processSaveState, processUpdates, processValidators, removeActionListener, removeIWActionListener, removeMarkupAttribute, removeStyleAttribute, renderChild, renderComponent, resetBeforeMain, resetGoneThroughMain, restoreFromReflectionProperties, setArtificialCompoundId, setAsPrinted, setAssociatedScript, setBelongsToParent, setBuilderIds, setChangeInstanceIDOnInheritance, setDefaultState, setDoPrint, setErrorMessage, setEventAttribute, setGoneThroughMain, setHeight, setHeightStyle, setHorizontalAlignment, setICObject, setICObjectID, setICObjectInstance, setICObjectInstanceID, setID, setID, setId, setID, setLocation, setMarkupAttribute, setMarkupAttribute, setMarkupAttribute, setMarkupAttributeMultivalued, setMarkupAttributeMultivalued, setMarkupAttributeMultivalued, setMarkupAttributeMultivalued, setMarkupAttributes, setMarkupAttributeWithoutValue, setName, setParent, setParentObject, setProperty, setRenderedPhaseDone, setRenderedPhaseNotDone, setResetGoneThroughMainInRestore, setStyleAttribute, setStyleAttribute, setStyleClass, setSupportsMultipleMainCalls, setTemplateId, setTemplateId, setTitle, setToolTip, setToRenderForLoggedIn, setToRenderForLoggedOut, setUseBuilderObjectControl, setVisible, setWidthStyle, supportsMultipleMainCalls, xhtmlEncode
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, findComponent, getClientId, getFacesContext, getFacesListeners, getFacetCount, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isTransient, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETER_MEMBER_MAIN_UNION

public static final java.lang.String PARAMETER_MEMBER_MAIN_UNION
See Also:
Constant Field Values

PARAMETER_DATE

public static final java.lang.String PARAMETER_DATE
See Also:
Constant Field Values

PARAMETER_UNION

public static final java.lang.String PARAMETER_UNION
See Also:
Constant Field Values

PARAMETER_TIME_OF_DAY

public static final java.lang.String PARAMETER_TIME_OF_DAY
See Also:
Constant Field Values

PARAMETER_GROUP_NUMBER

public static final java.lang.String PARAMETER_GROUP_NUMBER
See Also:
Constant Field Values

PARAMETER_DAYTIME

public static final java.lang.String PARAMETER_DAYTIME
See Also:
Constant Field Values

PARAMETER_NUMBER_OF_GOLFERS

public static final java.lang.String PARAMETER_NUMBER_OF_GOLFERS
See Also:
Constant Field Values

PARAMETER_FIELD

public static final java.lang.String PARAMETER_FIELD
See Also:
Constant Field Values

PARAMETER_TEE_TIME

public static final java.lang.String PARAMETER_TEE_TIME
See Also:
Constant Field Values

PARAMETER_NUMBER_OF_HOLES

public static final java.lang.String PARAMETER_NUMBER_OF_HOLES
See Also:
Constant Field Values

PARAMETER_ACTION

public static final java.lang.String PARAMETER_ACTION
See Also:
Constant Field Values

ACTION_UNREGISTER

public static final int ACTION_UNREGISTER
See Also:
Constant Field Values

ACTION_HANDICAP_ROUND

public static final int ACTION_HANDICAP_ROUND
See Also:
Constant Field Values

ACTION_HANDICAP_ROUND_REMOVE

public static final int ACTION_HANDICAP_ROUND_REMOVE
See Also:
Constant Field Values

SESSION_CLUB

public static final java.lang.String SESSION_CLUB
See Also:
Constant Field Values
Constructor Detail

TeeTimeTable

public TeeTimeTable()
Method Detail

main

public void main(com.idega.presentation.IWContext iwc)
          throws java.lang.Exception
Specified by:
main in class GolfBlock
Throws:
java.lang.Exception

isUser

public boolean isUser(com.idega.presentation.IWContext iwc)
Overrides:
isUser in class GolfBlock

getTeeTimes

public com.idega.presentation.ui.Form getTeeTimes(com.idega.presentation.IWContext iwc,
                                                  com.idega.util.IWCalendar funcDate,
                                                  boolean hasAdminRole)
                                           throws java.sql.SQLException,
                                                  java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

isMemberOfUnion

public boolean isMemberOfUnion(com.idega.presentation.IWContext iwc,
                               java.lang.String union)

isMemberBlackListed

public boolean isMemberBlackListed(java.lang.String union)

getCell

protected com.idega.presentation.TableCell2 getCell(com.idega.presentation.TableRow row,
                                                    java.lang.String styleClass)
Parameters:
row - to serach for cell in, not null;
styleClass - is name of one of the style classes assigned to cell, not null;
Returns:
cell in table by criteria or null on failure;

getTeeTimeTable

public com.idega.presentation.Table2 getTeeTimeTable(java.util.Map<com.idega.util.IWTimestamp,GolfField> configs,
                                                     java.util.Map<com.idega.util.IWTimestamp,GolfField> todayConfigs,
                                                     TableInfo myTableInfo,
                                                     java.util.Vector tournamentGroups,
                                                     com.idega.presentation.IWContext iwc)
                                              throws java.sql.SQLException,
                                                     java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

isTournamentGroup

public boolean isTournamentGroup(java.util.Vector rounds,
                                 int groupNumber)

getTournamentName

public java.lang.String getTournamentName(java.util.Vector rounds,
                                          int groupNumber)

getTableInfo

public TableInfo getTableInfo(GolfField start,
                              GolfField end,
                              int daytime)

insertDropdown

public com.idega.presentation.ui.DropdownMenu insertDropdown(java.lang.String dropdownName,
                                                             com.idega.presentation.IWContext iwc)
                                                      throws java.io.IOException
Throws:
java.io.IOException

insertDropdown

public com.idega.presentation.ui.DropdownMenu insertDropdown(java.lang.String dropdownName,
                                                             int countFrom,
                                                             int countTo)

insertDropdown

public com.idega.presentation.ui.InterfaceObject insertDropdown(java.lang.String dropdownName,
                                                                com.idega.util.IWCalendar funcDate,
                                                                GolfField today,
                                                                com.idega.presentation.IWContext iwc,
                                                                boolean isInUnion)

insertDrowdown

public com.idega.presentation.ui.DropdownMenu insertDrowdown(java.lang.String dropdownName,
                                                             TableInfo myTableInfo,
                                                             com.idega.presentation.IWContext iwc,
                                                             java.util.Vector torunamentRounds)
                                                      throws java.sql.SQLException,
                                                             java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

getNavigation

public com.idega.presentation.Layer getNavigation(com.idega.presentation.IWContext iwc,
                                                  com.idega.presentation.ui.Form form,
                                                  com.idega.util.IWCalendar dateFunc,
                                                  java.util.Map<com.idega.util.IWTimestamp,GolfField> Today,
                                                  boolean admin,
                                                  boolean isInUnion)
                                           throws java.sql.SQLException,
                                                  java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

getTeeTimeSearchPage

public com.idega.core.builder.data.ICPage getTeeTimeSearchPage()

setTeeTimeSearchPage

public void setTeeTimeSearchPage(com.idega.core.builder.data.ICPage p)

getTeeTimesPage

public com.idega.core.builder.data.ICPage getTeeTimesPage()

setTeeTimesPage

public void setTeeTimesPage(com.idega.core.builder.data.ICPage p)

actionPerformed

public boolean actionPerformed(com.idega.presentation.IWContext iwc)
                        throws com.idega.idegaweb.IWException
Specified by:
actionPerformed in interface com.idega.event.IWPageEventListener
Throws:
com.idega.idegaweb.IWException


Copyright © 2000-2014 idega software. All Rights Reserved.