Author |
Message |
|
Hi,
let's imagine my GridItem-Subclass has some Enum Attribute
Code:
public GridItemStatus getStatus() {
return m_GridItemStatus;
}
The Sort Order of these Enum Values is defined by a Comparator which can be obtained by using:
Code:
GridItemStatus.getComparator();
Now my Problem is, that the Method findSortComparatorForColumn needs a Comparator for SortHelper, not for my domain class.
Right now, I do have some trouble formulating that method so that it works, because I do not know anything about the SortHelper-World.
Could you provide some example code how to proceed in such a scenario?
Thanks,
Björn
|
|
|
Hi,
I have a Grid with one column which shows an Enum.
My problem is, that the cardinal numbers of the enums do not reflect their functional order.
This would be no problem, as long as I am in Java code, I'd just use a custom Comparator for this enum.
Unfortunately, I cannot do this when I use sortreference in a fixgrid column.
Is there any way to not only specify a sort reference but also a specific comparator in my fixgrid column definition?
Basically, I'd need something like an attribute named sortreferencecomparator which responds to a getter to a java.util.Comparator.
Regards,
Björn
|
|
|
Hi,
I'll recap the solution which works for me now.
In the JSP, the treeItem-Element has an attribute namend forground. I can bind this to a getter in my subclass of treeItem to have dynamic font colors depending on a flag which I introduce in this class named "active"
I cann ust this flag then in the methods getColor, onRowSelect and onRowExecute to have the desired look and behavior.
Pretty straightforward and not complicated at all this solution. I like it!
Thanks Björn for your help on this.
Regards,
Björn
|
|
|
Hi,
unfortunately, I have two problems with your suggestion.
1. It wouldn't help me if I can still select the line (because I would like the onRowSelect-Method not be called for these items
2. I am completely building up the Tree in Code and have no clue at the moment, how to get to the TreeNodes at this point (I only have FIXGRIDTreeItems at hand).
The code looks like this:
Code:
FIXGRIDTreeItem item;
item = new TreeNode(this.standards, datenbankFilterInfo.getOid(), datenbankFilterInfo.getName());
item.setText(datenbankFilterInfo.getName());
Right now, I simply resorted in not showing unsuitable items at all instead of trying to disable them.
Regards,
Björn
|
|
|
Hi,
I am using a ComboField with a FIXGRIDTree to have something like a hierarchic Combobox.
So far, this works really well.
Unfortunately my frontend requirements want me to put disabled endnodes into the tree. If I see that correct in the methods of FIXGRIDTreeItem, there unfortunately exists no such method, so FIXGRIDTreeItems are always enabled and cannot be disabled.
Is there any way to disable FIXGRIDTreeItem?
Regards,
Björn
|
|
|
Hi,
a while ago, I took the "Edit Column Details" dialog and used it as a blueprint to develop a popup for sorting multiple columns in a fixgrid: https://github.com/bjoern-thalheim/captaincasa-multiplesortui
You can see what the poup does here: http://www.screenr.com/kLI8
What happens here can be also done by Ctrl-Click on the column headers, so this is only a visual aid.
Björn (Müller) encouraged me to post this here. So here it is.
If anyone likes to use it, you can just pull the Code from Github. testGrid.jsp should demonstrate well how to incorporate the functionality. If you do so and find errors, feel free to report them to me.
Cheers,
Björn
|
|
|
Hi Björn,
obviously I have not looked onto the content assist well enough. Sorry.
There's a german proverb for this: "Wer lesen kann, ist klar im Vorteil".
So now, when I do it right, it works!
Thanks,
Björn
|
|
|
Hi,
thank you very much, now things work well for us!
Björn
|
|
|
Hello,
I have an issue regarding the presentation of a heximage in a scrollpane.
The heximage was made via t:screencrabber at a resolution of 1024x1024 pixel.
When it is rendered into a scrollpane it’s shrinked, so its content isn’t readable anymore.
The attribute height was set to 1024 (and 100%) with no effect.
Could you please give us some advice to circumvent this issue, e.g. show the image with its original size.
Best regards
|
|
|
Hi,
any news on this issue? That would be a really cool feature!
Thanks,
Björn
|
|
|
Hi,
I was trying to use a hotkey for pressing the OK-Button in a popup dialog.
What I would really love to do is the Outlook/Thunderbird-SendMail-Shortcut Ctrl-Enter.
Unfortunately crtl-13 won't work as a hotkey.
I'm not using Ctrl-Space (=ctrl-32) instead, but I'm not completely happy with it.
Is there a way to get ctrl-13 working?
Thanks,
Björn
|
|
|
OK, so I'll work with Backgroundpane and Statusbar to indicate this kind of situation and so this kind of validation in an asynchronous style.
Thanks,
Björn
|
|
|
Hi,
I implemented the following:
Given a Popup with Text Area and OK button.
The OK Button is enabled if the text bound to the text area in the UI class is non-empty.
The text area is done with flush and flushtimer=3sec.
This works. But I don't like it. The problem is that if you choose your flushtimer too short, typing in your text area is no fun! If you choose it to long, you'll have to wait for too long of a time after hitting the last key until the Button becomes enabled (of course you could just cause a server roundtrip by moving the focus out of the text area).
Is the logic described above possible without a client roundtrip (basically, I would do all simple synchronous validiation like in the example in the client)?
Thanks,
Björn
|
|
|
OK, cool. Thanks.
This works. Even better would bei a possibility to obtain the _screen_ size, because even the outmost CaptainCasa pane is way smaller than the screen (especially in a PageBrowser scenario).
But getting the real screen size is not possible, I presume?
Cheers,
Björn
|
|
|
Hi,
in order to suppress this warning, I did this (plus used the method here to bind it where the Dev Tools force me to):
Code:
@CCGenClass(expressionBase = "#{d.DummyUI}")
public class DummyUI extends WorkpageDispatchedBean implements Serializable {
private static final long serialVersionUID = 1L;
public DummyUI(IWorkpageDispatcher workpageDispatcher) {
super(workpageDispatcher);
}
public void onThisDoNothing(ActionEvent event) {
}
}
This way I suppress these false positive warnings.
Cheers,
Björn
|
|
|