is.idega.idegaweb.golf.presentation
Class GolfBlock

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
All Implemented Interfaces:
com.idega.idegaweb.block.presentation.Builderaware, com.idega.presentation.PresentationObjectType, java.lang.Cloneable, javax.faces.component.StateHolder
Direct Known Subclasses:
AdminRegisterTeeTime, BlockStartingtime, ChangeGroup, ChangePosition, ClubBlock, ClubInformation, ClubInformationEditor.Editor, ClubOverview, Dismiss, FieldBox, FieldEditor.Editor, FieldHandicapCalculator.Calculator, FieldLinks, FieldList, FieldOverview, GolfBagPrinter, GolfBagSelector, GolferHistory, GroupScorecard, GroupSelector, HandicapCard, HandicapFindMember.FindMember, HandicapInfo, HandicapMember, HandicapMemberInfo, HandicapMemberProgress, HandicapMemberStatistics, HandicapNavigation, HandicapOverview, HandicapRegister, HandicapRegisterForeign.RegisterForeign, HandicapRegisterOld, HandicapScore, HandicapScore.Score, HandicapScorecardView.ScorecardView, HandicapStatisticOverview, HandicapStatistics.Statistics, HandicapTable.HandicapTableViewer, HandicapUpdate, HandicapUpdater, HandicapUtility.Utility, HoleStatistics, ImageUploader, Leaderboard, MemberClubApplication, MemberClubApplicationApprover, MemberEditor.Editor, MemberError, MemberFamily, MemberFamilyCreator, MemberReport, MemberSearch, MemberSearcher, MemberSettings, MembersOverview, ModifyStartingtime, RegisterHandicapRound, RegisterNewMember, RegisterNewMemberBox, RegisterTime, RegistrationForMembers, ResultsViewer, Scorecards, SkyrslaJSP, StartingTimeCopy, StartingTimeLogin, StartingtimeSettings, StartingtimeStatistics, TeeTimeReport, TeeTimes, TeeTimesDropdown, TeeTimeSearch, TeeTimeTable, TourCanonScoring, TourHoleScoring, TourLeaderboardBox, TournamentAdminLink, TournamentBlock, TournamentBox, TournamentCBA, TournamentChecker, TournamentDelete, TournamentGroups, TournamentHandicapUpdate, TournamentInfo, TournamentInfoNavigation, TournamentList, TournamentNavigation, TournamentParticipantsList, TournamentRegistrationMobile, TournamentResults, TournamentStartingtimeList, TournamentStatistic, TournamentStatistics, TournamentTourBox, TournamentTourResults, TourScoringTypeSelector, TourTournamentSelector, UnionHandicapReport, UnionTeeTimeReport, UnregisterTime

public abstract class GolfBlock
extends com.idega.presentation.Block

Author:
laddi

Field Summary
protected static java.lang.String PARAMETER_MEMBER
           
protected static java.lang.String PARAMETER_MEMBER_LOGIN
           
static java.lang.String 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
GolfBlock()
           
 
Method Summary
 void _main(com.idega.presentation.IWContext modinfo)
           
 void addHeading(java.lang.String heading)
           
 void freeConnection(java.sql.Connection conn)
           
 com.idega.idegaweb.IWBundle getBundle()
           
 java.lang.String getBundleIdentifier()
           
 java.sql.Connection getConnection()
           
protected  com.idega.block.web2.business.JQuery getJQuery()
           
 Member getMember()
           
protected  Member getMember(int memberPK)
           
 Member getMember(com.idega.presentation.IWContext modinfo)
           
 Member getMember(java.lang.String memberPK)
           
protected  MemberHome getMemberHome()
           
protected  java.lang.String getMemberID(com.idega.presentation.IWContext modinfo)
           
 java.lang.String getParentReloadURL(com.idega.presentation.IWContext iwc)
           
 com.idega.idegaweb.IWResourceBundle getResourceBundle()
           
 TournamentBusiness getTournamentBusiness(com.idega.idegaweb.IWApplicationContext iwac)
           
 TournamentSession getTournamentSession(com.idega.idegaweb.IWUserContext iwuc)
           
 java.lang.String getUnionID(com.idega.presentation.IWContext modinfo)
           
protected  com.idega.block.web2.business.Web2Business getWeb2Business()
           
 com.idega.block.web2.business.Web2Business getWeb2Business(com.idega.presentation.IWContext iwc)
           
 boolean hasParentToReloadURL()
           
protected  void initParentReloadURL(com.idega.presentation.IWContext iwc)
           
 boolean isAdmin()
           
 boolean isClubAdmin()
           
 boolean isClubWorker()
           
 boolean isDeveloper()
           
 boolean isUser()
           
 boolean isUser(com.idega.presentation.IWContext iwc)
           
 java.lang.String localize(java.lang.String[] text)
          Method localize.
 java.lang.String localize(java.lang.String textKey, java.lang.String defaultText)
          Style related methods begin
abstract  void main(com.idega.presentation.IWContext modinfo)
           
 void maintainParentReloadURL(com.idega.presentation.IWContext iwc, com.idega.presentation.ui.Form myForm)
           
 void removeUnionIdSessionAttribute(com.idega.presentation.IWContext modinfo)
           
 void setDefaultParentReloadURL(java.lang.String url)
           
 
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_LOGIN

protected static final java.lang.String PARAMETER_MEMBER_LOGIN
See Also:
Constant Field Values

PARAMETER_MEMBER

protected static final java.lang.String PARAMETER_MEMBER
See Also:
Constant Field Values

PRM_PARENT_PREFIX

public static java.lang.String PRM_PARENT_PREFIX
Constructor Detail

GolfBlock

public GolfBlock()
Method Detail

_main

public void _main(com.idega.presentation.IWContext modinfo)
           throws java.lang.Exception
Overrides:
_main in class com.idega.presentation.Block
Throws:
java.lang.Exception

getConnection

public java.sql.Connection getConnection()
Returns:
The default DatabaseConnection

freeConnection

public void freeConnection(java.sql.Connection conn)

getResourceBundle

public com.idega.idegaweb.IWResourceBundle getResourceBundle()

getBundle

public com.idega.idegaweb.IWBundle getBundle()

main

public abstract void main(com.idega.presentation.IWContext modinfo)
                   throws java.lang.Exception
Overrides:
main in class com.idega.presentation.PresentationObject
Throws:
java.lang.Exception

getMember

public Member getMember(com.idega.presentation.IWContext modinfo)

getMember

public Member getMember(java.lang.String memberPK)

getMember

protected Member getMember(int memberPK)

getUnionID

public java.lang.String getUnionID(com.idega.presentation.IWContext modinfo)

removeUnionIdSessionAttribute

public void removeUnionIdSessionAttribute(com.idega.presentation.IWContext modinfo)

getBundleIdentifier

public java.lang.String getBundleIdentifier()
Specified by:
getBundleIdentifier in interface com.idega.idegaweb.block.presentation.Builderaware
Overrides:
getBundleIdentifier in class com.idega.presentation.Block

isAdmin

public boolean isAdmin()
Returns:
Returns the isAdmin.

isClubAdmin

public boolean isClubAdmin()
Returns:
Returns the isClubAdmin.

isClubWorker

public boolean isClubWorker()
Returns:
Returns the isClubWorker.

isDeveloper

public boolean isDeveloper()
Returns:
Returns the isDeveloper.

isUser

public boolean isUser()
Returns:
Returns the isUser.

isUser

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

getMember

public Member getMember()
Returns:
Returns the member.

localize

public java.lang.String localize(java.lang.String textKey,
                                 java.lang.String defaultText)
Style related methods begin


localize

public java.lang.String localize(java.lang.String[] text)
Method localize.

Parameters:
text - text[0] is key, text[1] is default value.
Returns:
String The locale text

addHeading

public void addHeading(java.lang.String heading)

maintainParentReloadURL

public void maintainParentReloadURL(com.idega.presentation.IWContext iwc,
                                    com.idega.presentation.ui.Form myForm)

getParentReloadURL

public java.lang.String getParentReloadURL(com.idega.presentation.IWContext iwc)

initParentReloadURL

protected void initParentReloadURL(com.idega.presentation.IWContext iwc)

setDefaultParentReloadURL

public void setDefaultParentReloadURL(java.lang.String url)

hasParentToReloadURL

public boolean hasParentToReloadURL()

getTournamentBusiness

public TournamentBusiness getTournamentBusiness(com.idega.idegaweb.IWApplicationContext iwac)

getTournamentSession

public TournamentSession getTournamentSession(com.idega.idegaweb.IWUserContext iwuc)

getWeb2Business

public com.idega.block.web2.business.Web2Business getWeb2Business(com.idega.presentation.IWContext iwc)

getMemberID

protected java.lang.String getMemberID(com.idega.presentation.IWContext modinfo)

getWeb2Business

protected com.idega.block.web2.business.Web2Business getWeb2Business()

getJQuery

protected com.idega.block.web2.business.JQuery getJQuery()

getMemberHome

protected MemberHome getMemberHome()


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