org.nuiton.wikitty.ui
Class LoginController

java.lang.Object
  extended by org.zkoss.zk.ui.event.GenericEventListener
      extended by org.zkoss.zk.ui.util.GenericComposer
          extended by org.zkoss.zk.ui.util.GenericAutowireComposer
              extended by org.zkoss.zk.ui.util.GenericForwardComposer
                  extended by org.nuiton.wikitty.ui.LoginController
All Implemented Interfaces:
Serializable, org.zkoss.zk.ui.event.EventListener, org.zkoss.zk.ui.util.ComponentActivationListener, org.zkoss.zk.ui.util.ComponentCloneListener, org.zkoss.zk.ui.util.Composer, org.zkoss.zk.ui.util.ComposerExt

public class LoginController
extends org.zkoss.zk.ui.util.GenericForwardComposer

Author:
sherkhan
See Also:
Serialized Form

Field Summary
protected  org.nuiton.util.ApplicationConfig _config
           
protected  Properties _properties
           
protected  ProxyModel _proxyModel
           
protected  org.zkoss.zul.Listbox dataList
           
 
Fields inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
_separator, application, applicationScope, arg, componentScope, desktop, desktopScope, execution, page, pageScope, param, requestScope, self, session, sessionScope, spaceOwner, spaceScope
 
Fields inherited from class org.zkoss.zk.ui.util.GenericComposer
_applied
 
Constructor Summary
LoginController()
           
 
Method Summary
protected  void clearAllDistantFields()
           
protected  void clearAllLocalFields()
           
protected  WikittyProxy createLocalProxy(Properties properties, String login, String password)
           
protected  void createProxyDatas()
           
protected  void disableUpdateButtons()
           
 void doAfterCompose(org.zkoss.zk.ui.Component comp)
           
protected  void enableDistantUpdateButton()
           
protected  void enableLocalUpdateButton()
           
protected  void fillDistantProxy(Data data)
           
protected  void fillLocalProxy(Data data)
           
 org.zkoss.zul.ListitemRenderer getDataRenderer()
           
 Properties getLocalProperties(Data data)
           
 ProxyModel getProxyModel()
           
protected  void goToWikittyPage(WikittyProxy proxy)
           
 void initConfig()
           
protected  void loadProperties()
           
 void onClick$add()
           
 void onClick$delete()
           
 void onClick$distantAdd()
           
 void onClick$distantUpdate()
           
 void onClick$modify()
           
 void onClick$select()
           
 void onClick$update()
           
 void onSelect$dataList()
           
protected  void removeDataFromProperties(Data data)
           
protected  void saveNewData(Data data)
           
protected  void saveProperties()
           
protected  void saveUpdateData(Data data)
           
 
Methods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
alert, didActivate, willClone
 
Methods inherited from class org.zkoss.zk.ui.util.GenericComposer
doBeforeCompose, doBeforeComposeChildren, doCatch, doFinally, willPassivate
 
Methods inherited from class org.zkoss.zk.ui.event.GenericEventListener
bindComponent, getController, onEvent, unbindComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zkoss.zk.ui.util.ComponentActivationListener
willPassivate
 

Field Detail

_proxyModel

protected ProxyModel _proxyModel

dataList

protected org.zkoss.zul.Listbox dataList

_config

protected org.nuiton.util.ApplicationConfig _config

_properties

protected Properties _properties
Constructor Detail

LoginController

public LoginController()
                throws IOException
Throws:
IOException
Method Detail

doAfterCompose

public void doAfterCompose(org.zkoss.zk.ui.Component comp)
                    throws Exception
Specified by:
doAfterCompose in interface org.zkoss.zk.ui.util.Composer
Overrides:
doAfterCompose in class org.zkoss.zk.ui.util.GenericForwardComposer
Throws:
Exception

initConfig

public void initConfig()

disableUpdateButtons

protected void disableUpdateButtons()

enableLocalUpdateButton

protected void enableLocalUpdateButton()

enableDistantUpdateButton

protected void enableDistantUpdateButton()

saveNewData

protected void saveNewData(Data data)
                    throws FileNotFoundException,
                           IOException
Throws:
FileNotFoundException
IOException

saveUpdateData

protected void saveUpdateData(Data data)
                       throws IOException
Throws:
IOException

loadProperties

protected void loadProperties()
                       throws IOException
Throws:
IOException

saveProperties

protected void saveProperties()
                       throws IOException
Throws:
IOException

createProxyDatas

protected void createProxyDatas()

removeDataFromProperties

protected void removeDataFromProperties(Data data)

createLocalProxy

protected WikittyProxy createLocalProxy(Properties properties,
                                        String login,
                                        String password)

goToWikittyPage

protected void goToWikittyPage(WikittyProxy proxy)

fillDistantProxy

protected void fillDistantProxy(Data data)

fillLocalProxy

protected void fillLocalProxy(Data data)

clearAllLocalFields

protected void clearAllLocalFields()

clearAllDistantFields

protected void clearAllDistantFields()

onSelect$dataList

public void onSelect$dataList()

onClick$modify

public void onClick$modify()

onClick$update

public void onClick$update()
                    throws IOException
Throws:
IOException

onClick$distantUpdate

public void onClick$distantUpdate()
                           throws IOException
Throws:
IOException

onClick$select

public void onClick$select()
                    throws org.nuiton.util.ArgumentsParserException
Throws:
org.nuiton.util.ArgumentsParserException

onClick$add

public void onClick$add()
                 throws FileNotFoundException,
                        IOException
Throws:
FileNotFoundException
IOException

onClick$distantAdd

public void onClick$distantAdd()
                        throws FileNotFoundException,
                               IOException
Throws:
FileNotFoundException
IOException

onClick$delete

public void onClick$delete()
                    throws IOException
Throws:
IOException

getDataRenderer

public org.zkoss.zul.ListitemRenderer getDataRenderer()

getProxyModel

public ProxyModel getProxyModel()

getLocalProperties

public Properties getLocalProperties(Data data)
                              throws org.nuiton.util.ArgumentsParserException
Throws:
org.nuiton.util.ArgumentsParserException


Copyright © 2010 CodeLutin. All Rights Reserved.