Commit graph

4560 commits

Author SHA1 Message Date
Farruco Sanjurjo
12277443f5 Added a scroll listener for LimitingResourcesPanel
* This will scroll the timetracker when the limiting resources is scrolled
* Also, changed the superclass to zk.Macro

FEA: ItEr02S03MigracionZK5
2010-09-08 14:51:45 +02:00
Farruco Sanjurjo
8a9fb40137 Overwritten getWidgetClass method for LimitingResourcesPanel
* Using setWidgetClass won't do anything if we want to use a different widget-class. This happens because
LimitingResourcesPanel extends HTMLMacroComponent and this class overwrites getWidgetclass too, for returning the "zk.Macro" string. So
when redrawing the component, the _wgtcls (widget class) property, setted with setWidgetClass, wont't we used well the redraw method
calls getWidgetClass

FEA: ItEr02S03MigracionZK5
2010-09-08 14:46:10 +02:00
Farruco Sanjurjo
833ec2cd2e Created LimitingResourcesPanel widget-class
* Configured this widget-class on lang-addon.xml
* Added entry on zk.wpd

FEA: ItEr02S03MigracionZK5
2010-09-08 12:49:49 +02:00
Farruco Sanjurjo
edc9a420b4 Explicitely added width attr for vbox at _orderElementTree
* Without this attribute, the with of the orders table was only 2px on chrome (on Firefox it worked properlly)

FEA: ItEr02S03MigracionZK5
2010-09-08 12:30:01 +02:00
Farruco Sanjurjo
1e8a943e47 Deleted useless Javascript dependencies
FEA: ItEr02S03MigracionZK5
2010-09-08 10:33:45 +02:00
Farruco Sanjurjo
c08736da82 Changed how the CSS class of a class is set
* Rather than creating ourselves a response (with an AuInvoke), we leverage on the setSclass method
* In this commit is also included some comments deleted

FEA: ItEr02S03MigracionZK5
2010-09-08 10:27:15 +02:00
Farruco Sanjurjo
7e0ecdea82 Overwrote default setLeft method
FEA: ItEr02S03MigracionZK5
2010-09-08 10:15:20 +02:00
Farruco Sanjurjo
4a7987b8f3 Added drag&drop functionallity
* Yahoo is included on the file for providing drag&drop. This must be deleted if the drag&drop is implemented with jQuery

FEA: ItEr02S03MigracionZK5
2010-09-08 10:14:04 +02:00
Farruco Sanjurjo
e87e715758 Added missing methods for adding depencies
FEA: ItEr02S03MigracionZK5
2010-09-08 10:12:45 +02:00
Farruco Sanjurjo
ddb5a0cf95 Changed how we retrieve the DependencyList widget
FEA: ItEr02S03MigracionZK5
2010-09-07 16:53:30 +02:00
Farruco Sanjurjo
a3b8a0d7c8 Added a z-index property to .box class
* This is done to simplify the UnlinkedDependencyComponent#isOverTask easier. This method checks if the mouse is over a task, and to be sure of that the task must be over anything on the ganttpanel
* This commit must be done before (when I added the isOverTask) but I missed it :(

FEA: ItEr02S03MigracionZK5
2010-09-07 13:16:36 +02:00
Farruco Sanjurjo
d395f77dca Modified UnlinkedDependencyComponent and how it's inserted on the DOM
* Commonly used properties are initialized now on the $init method. If we did it on the bind_ method there was an error as the unbind_ method was called even if the bind_ wasn't and at unbind_ we used properties set at bind_
* We dropped the overrided method appendChild at DepencyList. Instead of that, we now use the DependencyList mold and the appendChild(widget, ignoredom) method directly at TaskComponent
* Removed event listeners used by the UnlinkedDependencyComponent

FEA: ItEr02S03MigracionZK5
2010-09-07 13:10:08 +02:00
Farruco Sanjurjo
a61037aa1d Added singleton-like structure for DependencyList
* Added seg/getInstance methods

FEA: ItEr02S03MigracionZK5
2010-09-07 09:37:35 +02:00
Farruco Sanjurjo
66cd602c24 Added behaviour for consolidating a new depedency
* Uses TaskComponent#consolidateNewDependency

FEA: ItEr02S03MigracionZK5
2010-09-06 14:41:23 +02:00
Farruco Sanjurjo
1d244498b8 New isOverTask method
* we leave aside the coordinate calculations and take advantage of ZK 5 widget-object-model
* Added a property to TaskComponent widget: mouseOverTask

FEA: ItEr02S03MigracionZK5
2010-09-06 14:40:18 +02:00
Farruco Sanjurjo
d4070a94ef Fixed method call at DependencyComponentBase
FEA: ItEr02S03MigracionZK5
2010-09-06 13:17:22 +02:00
Farruco Sanjurjo
8b1cce42bf Fixed typo on variable name
FEA: ItEr02S03MigracionZK5
2010-09-06 12:07:26 +02:00
Farruco Sanjurjo
2efaa389d6 Converted jQuery-Array-like to proper Array
FEA: ItEr02S03MigracionZK5
2010-09-06 12:05:48 +02:00
Farruco Sanjurjo
6eca4b57e8 Test code for using UnlinkedDependencyComponent
FEA: ItEr02S03MigracionZK5
2010-09-03 15:15:03 +02:00
Farruco Sanjurjo
c9855e8513 Done some changes to improve performance while adding dependencies
* To sum up the changes, I did the following:
  - replace jQuery CSS method by native DOM attribute accessors (i.e. <object>.style.height rather than <jQobject>.height(...))
  - better use of jQuery selectors. You submit the container element (where you want to look for other elements) as a second parameter to the jq('<selector>') function
  - the origin coordinates for the dependency are just calculated once

FEA: ItEr02S03MigracionZK5
2010-09-03 15:09:59 +02:00
Farruco Sanjurjo
ad7f6de038 Behaviour for UnlinkedDependencyComponent
* This kind of dependency will be used when creating a dependency between two tasks

FEA: ItEr02S03MigracionZK5
2010-09-03 10:48:44 +02:00
Farruco Sanjurjo
246663975c Added missing Math.abs(...)
* This caused the .end line to be 0-length

FEA: ItEr02S03MigracionZK5
2010-09-03 10:47:35 +02:00
Farruco Sanjurjo
887e358a24 Added missing constant for DependencyComponentBase
FEA: ItEr02S03MigracionZK5
2010-09-03 10:30:24 +02:00
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