Re: Custom CSS-Class for OrderByLink (possible?)

2012-01-10 Thread Rain... Is wet!
Got what I want, but had to give up this approach :(

Instead of adding more css-classes, I just added a label to the
HeadersToolbar, to switch the ordering state via css background-image and
doing my checks for grouptotals in HeadersToolbar.onConfigure() where an
sumup-symbol is added as the new labels DataModelObject.

-
Never forget your umbrella ! In case You did, try to find a shelter ;)
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Custom-CSS-Class-for-OrderByLink-possible-tp4268604p4281731.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Custom CSS-Class for OrderByLink (possible?)

2012-01-06 Thread Martin Grigorov
Hi,

Which version of Wicket is this ?
In Wicket 1.5 ISortState is an interface and SingleSortState is a
class. They are not enums and are definitely extendable

On Fri, Jan 6, 2012 at 10:15 AM, Rain... Is wet!
oryp-moel...@hotmail.de wrote:
 Hi,
 I'm currently extending the DataTable and used classes to support some more
 stuff.

 I already extended OrderByLink to get the ability for interpreting
 additional request-parameter and this is working just fine. The only thing
 thats left for now is a way to extend the given SortState to provide +3
 states (for every given one I need 1 more that represents an extended
 version of itself) for 3 more css-classes. But as I can't extend enums
 (SortState) and all major classes that deal with SortState (either in
 SingleSortState and innerclasses in OrderByLink) are either static or final
 I don't get the point on where to start, without the need of replacing
 dozens of classes...

 So my question is: Is there any easy way where I can hack my
 extended-SortState in?

 P.S.:
 To determine the needed class it is a must have to have the ability to read
 a attributes-list I added to the DataProvider-Class. I think this too is the
 main reason why I have so much problems in dealing with all that
 final-classes/-methods...

 -
 Never forget your umbrella ! In case You did, try to find a shelter ;)
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Custom-CSS-Class-for-OrderByLink-possible-tp4268604p4268604.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Custom CSS-Class for OrderByLink (possible?)

2012-01-06 Thread Rain... Is wet!
I'm using 1.5 and You're right, was just a typo of mine, I ment the enum
SortOrder, not SingleSortState or ISortState...

-
Never forget your umbrella ! In case You did, try to find a shelter ;)
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Custom-CSS-Class-for-OrderByLink-possible-tp4268604p4268672.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Custom CSS-Class for OrderByLink (possible?)

2012-01-06 Thread Martin Grigorov
what other order you need ?

On Fri, Jan 6, 2012 at 10:48 AM, Rain... Is wet!
oryp-moel...@hotmail.de wrote:
 I'm using 1.5 and You're right, was just a typo of mine, I ment the enum
 SortOrder, not SingleSortState or ISortState...

 -
 Never forget your umbrella ! In case You did, try to find a shelter ;)
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Custom-CSS-Class-for-OrderByLink-possible-tp4268604p4268672.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Custom CSS-Class for OrderByLink (possible?)

2012-01-06 Thread Rain... Is wet!
In DataProvider i implemented a List of columns in which there should be
generated group-totals.
In addition to the given SortOrders NONE, ASCENDING, DESCENDING I need
NONESUM, ASCENDINGSUM, DESCENDINGSUM.
What I've come so far is the ability to set those attributes via an
additional request-parameter that is catched up in
OrderByLink.nextSortOrder(...). But what I can't from this point is to set
my new SortOrders and to implement the belonging css-classes that are being
set via OrderByLink.DefaultCssProvider - at least not without the need to
replace very much code and classes.

-
Never forget your umbrella ! In case You did, try to find a shelter ;)
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Custom-CSS-Class-for-OrderByLink-possible-tp4268604p4268712.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Custom CSS-Class for OrderByLink (possible?)

2012-01-06 Thread Rain... Is wet!
Found an not so complicated way to implement own css-class to orderbylink.

After calling the constructor of the superclass I just removed the
standard-css Modifier and added my own implementation instead.

this.removeAll();
this.add(new HisOrderByLink.CssModifier(this, cssProvider));

And in my CSSModifier I implemented the Check i needed.

Unfortunately this was a false approach :D I won't need a class on the
OrderByLink but on the container holding the .th - I will investigate
further on this^^

-
Never forget your umbrella ! In case You did, try to find a shelter ;)
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Custom-CSS-Class-for-OrderByLink-possible-tp4268604p4269006.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org