Re: Can i add multiple lines to a node-link in tree?

2008-02-29 Thread Thomas Kappler
On Fri, Feb 29, 2008 at 12:25 PM, Newgro <[EMAIL PROTECTED]> wrote:
>
>  I exchanged the tree-table by tree and have the same problem.
>  Can you please provide me a little example how you did this?

Extend BaseTree and let newNodeComponent() return a MultiLineLabel.
My code here is more complex and not suitable as an example.

Thomas


>  Cheers
>  Per
>  --
>  View this message in context: 
> http://www.nabble.com/Can-i-add-multiple-lines-to-a-node-link-in-tree--tp15617892p15756637.html
>
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can i add multiple lines to a node-link in tree?

2008-02-29 Thread Matej Knopp
The problem is that TreeTable doesn't use  for building the
actual layout. So it's not something easily fixable. It's on my todo
list to rework the TreeTable to use  but I'm kinda short of
time right now.

-Matej

On Fri, Feb 29, 2008 at 11:58 AM, Newgro <[EMAIL PROTECTED]> wrote:
>
>  Hello Matej,
>
>  is there a cause for fix single line? Or is it only not implemented yet?
>
>  Thanks
>  Per
>  --
>  View this message in context: 
> http://www.nabble.com/Can-i-add-multiple-lines-to-a-node-link-in-tree--tp15617892p15756237.html
>
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can i add multiple lines to a node-link in tree?

2008-02-29 Thread Newgro

I exchanged the tree-table by tree and have the same problem.
Can you please provide me a little example how you did this?

Cheers
Per
-- 
View this message in context: 
http://www.nabble.com/Can-i-add-multiple-lines-to-a-node-link-in-tree--tp15617892p15756637.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can i add multiple lines to a node-link in tree?

2008-02-29 Thread Newgro

Hello Matej,

is there a cause for fix single line? Or is it only not implemented yet?

Thanks
Per
-- 
View this message in context: 
http://www.nabble.com/Can-i-add-multiple-lines-to-a-node-link-in-tree--tp15617892p15756237.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can i add multiple lines to a node-link in tree?

2008-02-29 Thread Matej Knopp
It is not possible to do this with tree table. That is fixed for one line only.

-Matej

On Fri, Feb 29, 2008 at 11:26 AM, Newgro <[EMAIL PROTECTED]> wrote:
>
>  I added a NRFE
>  https://issues.apache.org/jira/browse/WICKET-1384
>  https://issues.apache.org/jira/browse/WICKET-1384
>
>  Maybe someone will take care for this.
>
>  Thanks for your taken time
>  Cheers
>  Per
>  --
>  View this message in context: 
> http://www.nabble.com/Can-i-add-multiple-lines-to-a-node-link-in-tree--tp15617892p15755831.html
>
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can i add multiple lines to a node-link in tree?

2008-02-29 Thread Newgro

I added a NRFE 
https://issues.apache.org/jira/browse/WICKET-1384
https://issues.apache.org/jira/browse/WICKET-1384 

Maybe someone will take care for this.

Thanks for your taken time
Cheers
Per
-- 
View this message in context: 
http://www.nabble.com/Can-i-add-multiple-lines-to-a-node-link-in-tree--tp15617892p15755831.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can i add multiple lines to a node-link in tree?

2008-02-28 Thread Thomas Kappler
.DefaultAbstractTree#onNodeLinkClicked(org.apache.wicket.ajax.AjaxRequestTarget,
>  javax.swing.tree.TreeNode)
>*/
>   protected void onNodeLinkClicked(AjaxRequestTarget pTarget, TreeNode
>  pNode) {
> super.onNodeLinkClicked(pTarget, pNode);
> DefaultMutableTreeNode dnode = (DefaultMutableTreeNode) pNode;
> ITreeModelBean current = (ITreeModelBean) dnode.getUserObject();
> if (current instanceof TreeModelCategoryBean) {
>   refreshNodes(pTarget, pNode);
> } else if (current instanceof TreeModelPackageBean) {
>   refreshNodes(pTarget, dnode.getParent());
> }
>   }
>
>   private void refreshNodes(AjaxRequestTarget pTarget, TreeNode
>  pCategoryNode) {
> DefaultMutableTreeNode dnode = (DefaultMutableTreeNode)
>  pCategoryNode;
> ITreeModelBean current = (ITreeModelBean) dnode.getUserObject();
> if (current instanceof TreeModelCategoryBean) {
>   TreeModelCategoryBean c = (TreeModelCategoryBean) current;
>   getTreeState().expandNode(pCategoryNode);
>   TreeNode firstChild = dnode.getFirstChild();
>   selectAllRoomRates(this, pCategoryNode);
>   if (getTreeState().isNodeSelected(firstChild)) {
> try {
>   onNodeChanged(pTarget, c.getCategory());
> } catch (Exception e) {
>   ServiceOfferingCategoryPanel.this.handleException(e, pTarget);
> }
>   }
> }
>   }
> };
>
>  Cheers
>  Per
>  --
>  View this message in context: 
> http://www.nabble.com/Can-i-add-multiple-lines-to-a-node-link-in-tree--tp15617892p15733117.html
>
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Can i add multiple lines to a node-link in tree?

2008-02-28 Thread Newgro
ModelCategoryBean) {
  TreeModelCategoryBean c = (TreeModelCategoryBean) current;
  getTreeState().expandNode(pCategoryNode);
  TreeNode firstChild = dnode.getFirstChild();
  selectAllRoomRates(this, pCategoryNode);
  if (getTreeState().isNodeSelected(firstChild)) {
try {
  onNodeChanged(pTarget, c.getCategory());
} catch (Exception e) {
  ServiceOfferingCategoryPanel.this.handleException(e, pTarget);
}
  }
}
  }
};

Cheers
Per
-- 
View this message in context: 
http://www.nabble.com/Can-i-add-multiple-lines-to-a-node-link-in-tree--tp15617892p15733117.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can i add multiple lines to a node-link in tree?

2008-02-27 Thread Thomas Kappler
On Wed, Feb 27, 2008 at 2:55 PM, Newgro <[EMAIL PROTECTED]> wrote:

>  i got it now with the multilinelabel. The text i add to a node contains an
>  \n. But i only see one row. I experimented a bit with the css, but i can't
>  get the tree node to show me 2 lines.

I just tried it, it works for me.  Added "\n bla" for testing:

add(new MultiLineLabel("sense", senseLabel + "\n bla"));

In the HTML it's a .

No idea what the problem could be, best show the relevant code.

Cheers,
Thomas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can i add multiple lines to a node-link in tree?

2008-02-27 Thread Newgro

Hi Thomas,

i got it now with the multilinelabel. The text i add to a node contains an
\n. But i only see one row. I experimented a bit with the css, but i can't
get the tree node to show me 2 lines.

Do you have an idea on that?

Cheers
Per
-- 
View this message in context: 
http://www.nabble.com/Can-i-add-multiple-lines-to-a-node-link-in-tree--tp15617892p15713698.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can i add multiple lines to a node-link in tree?

2008-02-22 Thread Thomas Kappler
Hi Per,

did you try using a wicket.markup.html.basic.MultiLineLabel?

If your tree nodes have more than one component, encapsulate them into
a Panel and return instances of that from
BaseTree.newNodeComponent(String id, IModel model).

Cheers,
Thomas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can i add multiple lines to a node-link in tree?

2008-02-21 Thread Per Newgro
Hi *,

i would like to present a bit longer text in a tree node. One condition is 
that the tree can't have the vertical scrollbar. Thus if i a my text FF and 
IE are presenting empty notes, because text doesnt fit into visible area. My 
i add a break or something so that the link will be presented with 2 lines as 
one node?

I hope i explained my problem well.

Thanks for helping me out here
Per

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]