Commit graph

4537 commits

Author SHA1 Message Date
Farruco Sanjurjo
7fbbc8597b Moved setupArrow method to top class
* This is moved here as all extending classes must setup its arrow

FEA: ItEr02S03MigracionZK5
2010-09-03 10:28:17 +02:00
Farruco Sanjurjo
688a2d3564 Basic implementation for UnlinkedDependencyComponent
* This components will be used when creating dependencies on a project instead of DependencyComponent (which has a counterpart on the model)

FEA: ItEr02S03MigracionZK5
2010-09-02 12:13:49 +02:00
Farruco Sanjurjo
ada3bd15e8 Created a base widget-class for dependency elements
* Most content has been refactored from DependencyComponent
* This will be used by DependencyComponent and other Dependency-like components (for example when creating a dependency)

FEA:ItEr02S03MigracionZK5
2010-09-02 12:09:54 +02:00
Farruco Sanjurjo
4baf3efc0a Added missing $supers call at overwrote method
* As this $supers call was missing the children wasn't added to the parent's children array, it was just inserted at the DOM

FEA: ItEr02S03MigracionZK5
2010-09-02 11:33:59 +02:00
Farruco Sanjurjo
e2a3b7d1d8 Fixed bug that caused and exception on empty Strings
FEA: ItEr02S03MigracionZK5
2010-09-01 13:30:51 +02:00
Farruco Sanjurjo
d69fd6935c Adapted retrieveData to use JSONArray objects
* This type is used now on zAu requests when sending an array
* Also deleted "stripPX" methods as now the coordinates are sent without "px" sufix

FEA: ItEr02S03MigracionZK5
2010-09-01 12:29:14 +02:00
Farruco Sanjurjo
f614e7b35f Added addRelatedDependency method for TaskComponent widget-class
FEA: ItEr02S03MigracionZK5
2010-08-31 11:31:11 +02:00
Farruco Sanjurjo
43c2f05c7a Added methods for drawing dependency arrows
FEA: ItEr02S03MigracionZK5
2010-08-31 11:11:59 +02:00
Farruco Sanjurjo
8510249ff0 Added required constants for TaskComponent widget-class
FEA: ItEr02S03MigracionZK5
2010-08-31 11:10:39 +02:00
Farruco Sanjurjo
113ec42f93 Added common.Common as a dependency for ganttz package
FEA: ItEr02S03MigracionZK5
2010-08-31 11:08:07 +02:00
Farruco Sanjurjo
9b629bad36 Created a Common widget-class
* This is expected to be a place to put common utilities used by other classes. In order to use it, you have to give it as a dependency on the zk.wpd of the package that uses it
* This is experimental, might be deleted on following commits

FEA : ItEr02S03MigracionZK5
2010-08-31 11:05:04 +02:00
Farruco Sanjurjo
3675988e04 Overwrote appendChild method for DependencyList widget-class
* We have to overwrite it if we want to append child to the #listdependencies inner div

FEA: ItEr02S03MigracionZK5
2010-08-31 09:53:26 +02:00
Farruco Sanjurjo
cd8d9364a0 Fixed bug on TaskContainer mold
* Added missing <div> closing tag

FEA: ItEr02S03MigracionZK5
2010-08-30 14:12:11 +02:00
Farruco Sanjurjo
3645d9fbe4 Added a method for initializing commonly used properties at DependencyComponent widget-objecs
* This properties will be used later by other methods

FEA: ItEr02S03MigracionZK5
2010-08-27 14:44:16 +02:00
Farruco Sanjurjo
27fd71a8cc Added missing mold content for DependencyList component
* This should have been done before, but I forgot it

FEA: ItEr02S03MigracionZK5
2010-08-27 14:28:04 +02:00
Farruco Sanjurjo
c1e1834c50 Content for DependencyComponent mold
FEA: ItEr02S03MigracionZK5
2010-08-27 14:27:34 +02:00
Farruco Sanjurjo
e7dc70b8bb Added $define property for DependencyComponent widget-class
* It'll define setters and getters for: _idTaskOrig, _idTaskEnd and _dependencyType
* It also includes a "draw" placeholder method to avoid an exception

FEA: ItEr02S03MigracionZK5
2010-08-27 14:24:34 +02:00
Farruco Sanjurjo
13e75134ac Added renderProperties method for DependencyComponent
* Right now it'll be used for setting properties at the widget needed by the mold

FEA: ItEr02S03MigracionZK5
2010-08-27 14:23:16 +02:00
Farruco Sanjurjo
cf946ab767 Added skeletal mold and widget-class for DependencyComponent
* Also modified the zk.wpd and lang-addon.xml files to reflect the changes

FEA: ItEr02S03MigracionZK5
2010-08-27 14:21:29 +02:00
Óscar González Fernández
c3d2bc2d37 Avoid adding Timeplot because it is failing.
The exception produced is:
org.zkoss.zk.ui.UiException: Widget class required for <Timeplot z_d__87> with default
at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1681)

The root cause is that timeplotz lang-addon.xml file is not loaded due
to a version missmatch. From startup log:

Aug 26, 2010 8:21:27 PM org.zkoss.zk.ui.sys.ConfigParser checkVersion:120
INFO: Ignore jar:file:/home/ogonzalez/.m2/repository/org/zkoss/zkforge/timeplotz/1.1_50/timeplotz-1.1_50.jar!/metainfo/zk/lang-addon.xml
Cause: version not matched; expected=1.1_50-FL, xml=1.1_50

FEA: ItEr02S03MigracionZK5
2010-08-26 20:56:59 +02:00
Farruco Sanjurjo
0ac9382ef0 Replaced deprecated valign property
FEA: ItEr02S03MigracionZK5
2010-08-26 20:56:00 +02:00
Farruco Sanjurjo
dcf23eb415 Replaced deprecated valign property
FEA: ItEr02S03MigracionZK5
2010-08-26 20:56:00 +02:00
Farruco Sanjurjo
988bf23650 Added show/hideResourceTooltips methods
FEA: ItEr02S03MigracionZK5
2010-08-26 20:56:00 +02:00
Farruco Sanjurjo
a034808077 Added hide/showAllTaskLabels methods
* This methods replace show/hideAllToolTips as using that name was misleading because there are other methods called show/hideToolTip (at TaskComponent.js) that do different stuff

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:59 +02:00
Farruco Sanjurjo
d117309339 Renamed method at TaskComponent widget-class
FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:59 +02:00
Farruco Sanjurjo
a9c483dad6 Replaced deprecated LayoutRegion import
* As a consequence of this deprecated import, auto-wiring features weren't working properlly

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:59 +02:00
Farruco Sanjurjo
0c7457da68 Replaced deprecated propertie: valign
* The Box valign propertie is deprecated since version 3.0.0 ( http://www.zkoss.org/javadoc/3.6.4/zk/org/zkoss/zul/Box.html#setValign(java.lang.String) ). Now we have to use setAlign or setPack (align and pack properties)

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:59 +02:00
Farruco Sanjurjo
f28f3043e1 Changed super-widget-class for TaskContainerComponent
* Notice that instead of extending from zk.Widget we are extending from ganttz.TaskComponent as the behaviour (properties and methods) is the same

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:59 +02:00
Farruco Sanjurjo
eb71ff6189 Mold content for TaskContainerComponent
FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:59 +02:00
Farruco Sanjurjo
8b3d46fda2 Skeletal mold and widget class for TaskContainerComponent
* Without these, an exception will be raised when I double click on a task

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:59 +02:00
Farruco Sanjurjo
ebd62c452d Adapted css classes
* On ZK 5 the css class of several ZK components have changed

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:59 +02:00
Farruco Sanjurjo
c05d505ab4 Added adjustResourceLoadRows for QueueListComponent
FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:59 +02:00
Farruco Sanjurjo
6012795d54 QueueListComponent now extends XulElement
* This is required if we want to use our mold instead of the default for the zk.Macro widget-class
* we could have also overwritten the getWidgetClass for achiving a similar behaviour

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:59 +02:00
Farruco Sanjurjo
eed7e9796f Fixed typos
FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:58 +02:00
Farruco Sanjurjo
11201ed11b Mold content for QueueListComponent
* Replaced queue-component.js content as it was using the wrong one
* Created getter and setter for "resourceName" propertie

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:58 +02:00
Farruco Sanjurjo
f016022b0a Skeletal mold and widget-class for QueueListComponent
* Also modified lang-addon.xml and zk.wpd for using it

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:58 +02:00
Farruco Sanjurjo
e07ade23c9 Mold content for LimitingDependencyComponent
* Aside of updating the mold, I also added the renderProperties

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:58 +02:00
Farruco Sanjurjo
df241aaa55 Mold content for LimitingDependencyList
FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:58 +02:00
Farruco Sanjurjo
38d5ada0d7 Mold content for QueueComponent
FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:58 +02:00
Farruco Sanjurjo
ad8b560ce5 Basic widget-clasess and molds for Limitin Resources perspective
* Without this files the Limiting Resources perspective won't even load

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:58 +02:00
Farruco Sanjurjo
41f3795761 Added adjustScrollableDimensions to Planner widget-class
* Also added helper methods at GanttPanel widget-class

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:58 +02:00
Farruco Sanjurjo
173ceec48d Refactored event listener from TaskList to GanttPannel
* Give a look to this post: https://sourceforge.net/mailarchive/forum.php?thread_name=1655a8a1d6e59b8ffa918630d1440dfd%40igalia.com&forum_name=navalplan-devel

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:58 +02:00
Farruco Sanjurjo
fda0bf14b5 Added method to ResourceLoadList
FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:58 +02:00
Farruco Sanjurjo
0ef5a6d4e9 Added event handler for scrolling
FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:57 +02:00
Farruco Sanjurjo
84cd61c58c Fixed bug on overwritted method
* If the zk.Object.$init is overwritten, whereever we overwritte it we must invoke the overwritten method with the parameters provided.
If we don't do that, for example, we will lose the uuid provided by the component at the server

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:57 +02:00
Farruco Sanjurjo
8d296813df Event handler for resize event
* Added an event handler for the onResize event at ResourceLoadList widget-class

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:57 +02:00
Farruco Sanjurjo
1b7aa91543 Replaced Clients.evalJavascript argument
* Now it uses the proper package-widget-class namespace style of ZK 5

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:57 +02:00
Farruco Sanjurjo
4da7bcbc47 Added recalculateTimeTrackerHeight
* Added this method to ResourceLoadList widget-class

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:57 +02:00
Farruco Sanjurjo
3d2c41cc70 Fixed typos
FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:57 +02:00
Farruco Sanjurjo
dfb2e50740 Added class-methods setInstance and getIntance
* As we need a reference to the widget-object created for ResourceLoadList we keep this reference on the class itself

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:57 +02:00