[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: hartmann  XML
Profile for hartmann -> Messages posted by hartmann [73] Go to Page: 1, 2, 3, 4, 5 Next 
Author Message
Hello Captain (I know i should normally ask the Community, but I think noone else but you can give me an answer ),

is there any reason, why the rootNodes of the FIXGRIDTreeBinding return 'default' when calling 'getText()' while for subnodes it works fine? Or is it just a mistake?

Regards

Horst
Hi again,

I've nearly solved the problem myself:

Code:
 private void initDynamicMenuBar(List<FunctionTree> functionTrees) {
         dynamicMenuBar = new ROWDYNAMICCONTENTBinding();
         dynamicMenuBar.setContentNodes(new ArrayList<ComponentNode>());
         MENUBARNode menuBarNode = new MENUBARNode();
         dynamicMenuBar.getContentNodes().add(menuBarNode);
         for (FunctionTree functionTree : functionTrees) {
             FIXGRIDTreeBinding<FunctionNode> binding = functionTree.getFtree();
             FunctionNode item = (FunctionNode) binding.getRootNode();
             addMenuNode(menuBarNode, item);
         }
     }
 
     private void addMenuNode(ComponentNode parentNode, FunctionNode item) {
         if (hasChildNodes(item)) {
             MENUNode node = new MENUNode();
             parentNode.addSubNode(node);
             node.setText(item.getText());
             for (FIXGRIDTreeItem childItem : item.getChildNodes()) {
                 addMenuNode(node, (FunctionNode) childItem);
             }
         } else {
             MENUITEMNode node = new MENUITEMNode();
             parentNode.addSubNode(node);
             node.setText(item.getText());
             node.setImage(item.getImage());
             node.setReference(item.getJspPage());
             node.setActionListener("#{d.WorkplaceMBean.onShowPage}");
         }
     }
 
     private boolean hasChildNodes(FunctionNode item) {
         return (item.getChildNodes() != null) && (item.getChildNodes().size() > 0);
     }


But there is still one problem: the rootentries in the menubar have the text 'default' instead of the text defined in the configurationfile.

Regards
Horst
Hi,

I think it would be enough if I could access the attributes 'text' and 'jspPage'.

Regards
Horst
Hi,

we use the workplace concept to define a functiontree through xml configuration file.

Now we have users who want a menubar instead of the functiontree. And they want to choose this option dynamically in tha application.

What would be the most convenient way to do that?

I tried to build it up from the functiontree, but unfortunately some relevant attributes (name, actionslistener, ...) are not accessable.

Regards, Horst
Hi,

tried it today, works fine, thx a lot.

Regards, Horst
Hi,

I use the workplaceperspectiveselector to change the perspectives in my application. When changing the perspective I want to modify the 'look' of some icons in my main window.

Is there any way to implement an actionlistener or to reset the managedBean classes after changing the perspective this way.

Regards
Horst
ok,

thx, works fine.
Hi,

how can I drag a FunctionNode from workplace to a pane in my workplacewindow?

The functiontree is defined via xml '...eclntjsfserver\config\ccworkplace\functiontrees\..., not programatically. So, how can I define DRAGSEND to FunctionNodes defined that way?
sorry, wrong button

but that has no effect.

Horst
Hi Björn,

I've tried to switch of focus drawing by adding line to jnlp

<application-desc main-class="org.eclnt.client.page.PageWebStart">
...
<argument>footerline=false</argument>
<argument>focusdrawing=false</argument>
<argument>maximized=true</argument>
...
</application-desc>
Hi Björn,

there seems to be a small error with the frame of a selected schedule element.

The fixgrid is placed into a scrollpanel, but the frame around the scheduleelement seems to ignore that fact.

I've tried to upload a picture, but got errors, I send you by mail.

Horst
Hi Björn,

thanks for the demo, I've done it like that, works fine.

Regards

Horst
Hi,

is there any way to define fixed columns in a fixgrid.

In our case we need a grid where the first N columns stay on screen when horizontal scrolling is used.

regards

Horst
Hi Björn,

our customer want's to plan orders by defining the earliest startpoint of the order, the endpoint will be calculated by businesslogic.

regards
Horst
Hi,

is there any methode define that the <t:schedule> component can only be resized at the left end?

In class SCHEDULEITEMComponentTag I only found the methods 'setResizingenabled()' and 'setSizeratbothsides()' for changing the behaviour.

Is there any methode like 'setSizeratleftside()'

Regards

Horst

 
Profile for hartmann -> Messages posted by hartmann [73] Go to Page: 1, 2, 3, 4, 5 Next 
Go to:   
Powered by JForum 2.1.6 © JForum Team