Commit graph

4518 commits

Author SHA1 Message Date
Ó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
Farruco Sanjurjo
93813dee0d Added ResourceLoadList to WPD file for resourceload package
FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:57 +02:00
Farruco Sanjurjo
9842ce9850 Basic widget-class and mold for ResourceLoadList
FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:57 +02:00
Farruco Sanjurjo
17564d4683 Changed inherited class for ResourceLoadList
* In ZK 5 the use of the molds for our components is related with the name of the component's widget-class  and by defaul
any class which extends from HTMLMacroComponent will have "zk.Macro" as component name even if we specified another one at lang-addon.xml

The ResourceLoadList component is not a macro component (it has a mold) so making it extend XulElement instead of HTMLMacroComponent will be ok and as a side effect of doing it, we'll get the proper widget-class name (from the lang-addon.xml file)

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:57 +02:00
Farruco Sanjurjo
93a5344505 Mold content for ResourceLoadCompononent
FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:57 +02:00
Farruco Sanjurjo
133ff9f34a GanttPanel static-widget-instance is updated on each instantiation
As a new GanttPanel widget-object is instantiated is created each time the component is created (e.g. when we change perspective) we have to update the
reference to this new object

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:56 +02:00
Farruco Sanjurjo
d7d89b07e3 Replaced setStyle with render(...,"style",...)
For a deeper explanation check the considerations point at https://wiki.fundacioncalidade.igalia.com/twiki/bin/view/SummerInternship2010/ItEr02S03MigracionZK5

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:56 +02:00
Farruco Sanjurjo
ff21973bdd Replaced deprecated method
* From ZK api: Deprecated. As of release 5.0.0, replaced with showBusy(String) and clearBusy().

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:56 +02:00
Óscar González Fernández
0864423dd4 Fix compiler error.
TimeGeometry setMin and setMax now receive a date instead of a string.

FEA: ItEr02S03MigracionZK5
2010-08-26 20:55:33 +02:00
Farruco Sanjurjo
52aee6429e Proper setup of zkforge dependencies
* Proper setup of zkforge dependencies on the project's pom file. The zkoss' maven repository must be the first on the repo list
in order to be the first chosen

* Now we use the latest build of timplotz and timelinez

FEA: ItEr02S03MigracionZK5
2010-08-26 20:54:09 +02:00
Farruco Sanjurjo
0332c55a0c Replaced deprecated interface import
FEA: ItEr02S03MigracionZK5
2010-08-26 20:54:09 +02:00
Farruco Sanjurjo
a0e5323cc0 Basic widget-class and mold for ResourceLoadComponent
FEA: ItEr02S03MigracionZK5
2010-08-26 20:54:08 +02:00
Farruco Sanjurjo
e5f25779f2 Added widget and mold config for ResourceLoadComponent
FEA: ItEr02S03MigracionZK5
2010-08-26 20:54:08 +02:00
Farruco Sanjurjo
22b7578e11 zk.wpd file for ganttz.resourceload package
FEA: ItEr02S03MigracionZK5
2010-08-26 20:54:07 +02:00
Farruco Sanjurjo
a26a413794 Fixed width for modal window
* This was a solution for a problem related with the width of the "change scenario" modal window. Give a look to this thread: https://sourceforge.net/mailarchive/forum.php?thread_name=20100818104326.22ac8682%40erizana&forum_name=navalplan-devel

FEA: ItEr02S03MigracionZK5
2010-08-26 20:54:06 +02:00
Farruco Sanjurjo
96a957f677 Fixed typo on method name
FEA: ItEr02S03MigracionZK5
2010-08-26 20:54:06 +02:00
Farruco Sanjurjo
37af02a495 Enabled event thread
* On ZK 5 the event handling thread is disable by default. Use this patch to enable it
* This is needed for example if you want to use modal windows

FEA: ItEr02S03MigracionZK5
2010-08-26 20:54:05 +02:00
Farruco Sanjurjo
7d4fb87d76 Added <?component...?> directive
* Changed the mold (now is trendy) for buttons at template.zul

FEA: ItEr02S03MigracionZK5
2010-08-26 20:54:05 +02:00
Farruco Sanjurjo
8be2e31c7b Replaced Javascript sent to client
* Adapted GanttPanel to fit this change. Refactored some code too

FEA: ItEr02S03MigracionZK5
2010-08-26 20:54:04 +02:00
Farruco Sanjurjo
b59c8c98f8 Replaced jQuery by jq
* Changed to keep all calls to the extended ZK's jQuery version
* Also deleted some comments

FEA: ItEr02S03MigracionZK5
2010-08-26 20:54:03 +02:00