How to make nodes in springgraph clickable

Hi all,
I used Mark Shepard's springgraph component and brought up a springgraph in my application with  xml data comin from the database. Now i want the nodes(images as of now) to be clickable as in the amazon example so that once the node is clicked i can move to another view in the viewstack. Am new to flex and any help will be appriciated.
Thanks,
Prashant

Hi csh,
you can use the TilePane in the HBox to make the buttons to the same width. For example:
@Override
    public void start(Stage stage) {
        BorderPane root = new BorderPane();
        root.setPadding(new Insets(20, 20, 20, 20));
        Control control = new Button(
                "This is very long text.... .Lorem ipsum............"
                + "mmmmmmmmmmmmmmmmmmmmmmmmmm................");
        root.setCenter(control);
        HBox hBox = new HBox();
        hBox.setAlignment(Pos.BOTTOM_CENTER);
        TilePane tile = new TilePane();
        tile.setAlignment(Pos.CENTER);
        tile.setHgap(8);
        Button b = new Button("Ok");
        b.setMaxWidth(Double.MAX_VALUE);
        tile.getChildren().add(b);
        b = new Button("Cancel");
        b.setMaxWidth(Double.MAX_VALUE);
        tile.getChildren().add(b);
        b = new Button("Very long Button");
        b.setMaxWidth(Double.MAX_VALUE);
        tile.getChildren().add(b);
        hBox.getChildren().add(tile);
        root.setBottom(hBox);
        Scene scene = new Scene(root);
        stage.setScene(scene);
        stage.show();
    }

Similar Messages

  • How to make a button not clickable???

    i wanna make a button not clickable, once it is clicked... help me to do this
    Thanks
    Rubin

    you can either call setEnabled(false) or remove the listenerFor sake of GUI ergonomics, I'd suggest the first solution.
    If you implement the second solution, you'll have the user clicking on the button again and again and asking himself why nothing happens.

  • How to make HDivide Box Bars clickable?

    Does anyone know how to make the bars of a HDivide box click
    able so I can collapse or open the children. Basically when clicked
    I want to collapse the bars and change the bar image and then if
    it's closed have it open... Similar to Editing tools in windows
    applications. Any examples or help would be appreciated

    Be sure that you have assigned the button covering the stage
    the instance name "clic"
    Also, to cover all bases, you will be better off to approach
    the code using strict AS3...
    var url:String = "
    http://hartkopfconstruction.com";
    var request:URLRequest = new URLRequest(url);
    function clicked(e:MouseEvent):void{
    navigateToURL(request);
    clic.addEventListener(MouseEvent.CLICK, clicked);
    Sorry, but I don't personally know any good Flash books. I've
    done most of my learning by doing (trying) and searching for
    solutions when I need them. If you search the forum you may find
    some recommendations. I've seen this question a few times.

  • Tree element: How to make nodes editable

    Is it possible to make the nodes of a Tree element (a design time element visible in the view editor) editable? Or is there a tree component that can be used via "component use" with which to accomplish that?
    I don't want to use a table with embedded TreeByKeyTableColumn or similar!

    Hi Klaus,
    It's not possible for a tree ui element. As you pointed out you could achieve it using a TreeBy* master column of a table. The ByNesting variant uses a similar context structure as a tree. In addition, using a table will enable scrolling - which is not possible for the Tree ui element.
    Best regards,
    Thomas

  • How to make portlet header not clickable?

    Hi,
    I published a page as a portlet and placed it on another page. I enabled the region where the portlet resides in to show the portlet header. Now I found out that if I click the portlet header, the orignial page of the portlet is shown. I don't want to show it to my users, but do want to keep the portlet header and make it non-clickable. Is there a way to do that? Any help will be appreciated.
    I'm using version 10g.
    Thanks,
    Yaxu

    Hi,
    You have to disable the "Show Details Link on Portlet Header" box for the region where you display the page as portlet.
    It's at the end of the "Edit Region" Main page where you can set which links you want to display.
    Alex

  • How to make only Panel title clickable?

    I have a Panel where I'd like to do something if the user
    clicks the title (title bar/header) of the Panel. I don't want to
    have the whole Panel be clickable, since a user might "miss" when
    clicking one of the other elements and inadvertently click the
    panel. Thoughts?

    You could place a transparent component over the rest of the
    panel. that component will intercept all mouse events. That is the
    way modal pop-ups work. You do not have to use the blur look.
    I have not done this but there will be examples available,
    and you can look into the pop-up code.
    Tracy

  • How to make an particular text  clickable inside textview

    "This can be done by connecting to corporate Wi-Fi or VPN.Learn more..."
    The last "learn more" should be clickable inside textview that should take to the next page.Can any1 suggest me good ideas.

    Is this for an iPhone? What I do on the Mac is display an attributed string with a link embedded.
    // Build a URL.
    + (NSAttributedString *) buildURL: (NSString *) url
      title: (NSString *) title
      NSMutableAttributedString * urlString =
        [[NSMutableAttributedString alloc] initWithString: @""];
      [urlString
        appendString: title
        attributes:
            NSFontAttributeName : [[Utilities shared] boldFont],
            NSForegroundColorAttributeName : [[Utilities shared] blue],
            NSLinkAttributeName : url
      return [urlString autorelease];

  • Newbie help - How to make a datagrid cell clickable?

    I have a datagrid (in Flash Builder 4) bound to a coldfusion component. Each row has a column with a URL that I need the user to be able to go to.
    Surely this is a common request. I can't find any recent documentation to support it.
    Please point me in the right direction.
    Thanks

    hey hi!
    first of all I would like to suggest you to get at least the basic knowledge of the language before posting any question.
    And about making the library what you have to do is that put the jar file or the directory where you have kept the class files in the CLASSPATH.
    hope it helps..
    vikram

  • Make Dynamic text non-clickable

    Hi Guys,
    I need to learn how to make dynamic text non-clickable, like
    those in loaders. Any Ideas...?
    Thanks in Advance

    you mean non-selectable. :)
    you'll find this option in the properties panel. with the
    text tool selected (or with a text-box selected on the stage)
    search the properties panel for a button showing 'Ab' where 'b'
    looks like it was selected. that's the button controlling if the
    text is selectable or not.
    got it? (i can post you a screenshot if you can't find it) ;)
    adam

  • How to make a job run on a appointed node

    I have a problem. The database is Oracle 10g, RAC, two nodes
    There are some job which run on everyday night. Now, something happened, the job run on Node A can't work as normal, but if run on node B, It will work well.
    so I just want to submit the jobs on Node B, I submited the jobs on Node B, but the jobs always run on Node A.
    I want to know how to make a job run on a appointed node.

    the Job just transfer some procedure to add partitions for some table, to merge the records from some tables to one table and so on.
    the problem is when the job run on Node A, it is very very slow, the procedure would run hours and not success end, but if on Node B it will successfully end in seconds.
    restart the Node A would be a way for the problem, but may it will leave a hidden trouble. I want save the scene to find out the problem
    so can you help me

  • How to make visible value attributes of a Search Node

    Hi All,
    We have a requirement to enhance the search context node SEARCH ( Dynamic Query Object SVYQ ) of component SVY_S.
    But the enhancement category of Attribute Structure CRMST_QUERY_SVYIL is 'Can't be enhanced'.
    So we are adding value attributes to this context node. How to make this value attributes available in view configuration tab?
    Please suggest a better approach if there is any.
    Thanks in adv.

    Hi  Suchindra,
       You assign these  enhanced  attributes to design layer. so you can see these fields in Config tab.
    How to do:
    IMG->Customer Relationship Management -> UI Framework -> UI Framework definition -> Maintain
    design layer
    Here include the enhanced attributes and then go to component work bench and in context attributes right click assign the desing layer, selct your attribute and  in the bottom click on SAVE button.
    Then check it in configuration tab your attributes will available in show available fields.
    I hope this will solve your problem
    Regards,
    Sagar

  • How to make all nodes in a detailed navigation tree open automatically??

    Dear All,
    I have added some iViews to two folders and add these two folders to a workset "Time" and then add "Time" to the role of Employee portal user.
    How to make all nodes expanded automatically when this workset is clicked in EP??
    thanks,
    Zita

    Not surprising...it does not work even if you follow the exact way...
    Role ->
             Workset 1
                          -> Page 1
                          -> Workset 2
                                           -> Page 2
                          -> Workset 3
                                           -> Page 3
    When the user clicks on Role which is the Entry Point, I want the user to see Page1 (works alright) and want the tree node Workset 2 open (doesn't work)...I want tree node Workset 3 closed (which is what happens...)
    The thing is Workset 2 has to be open...
    This is what I've done...I've made the Initial State of Navigation Panel set to "Open"...
    What else is to be done????
    Thanks a lot.
    JP

  • How to make a node chooseable

    this is my tree:
    <af:tree value="#{favoriteTreeMB.treeModel}" var="node"
    rowSelection="single" id="pt_t1">
    <f:facet name="nodeStamp">
    <af:group>
    <af:goLink text="#{node.attributes['name']}" styleClass="common"
    destination="#{node.attributes['link']}"
    rendered="#{not empty node.attributes['taskflow']}"/>
    <af:outputText value="#{node.attributes['name']}"
    rendered="#{empty node.attributes['taskflow']}"/>
    </af:group>
    </f:facet>
    <f:facet name="pathStamp"></f:facet>
    </af:tree>
    this is the tree model:
    public class FavoriteTreeModel extends ChildPropertyTreeModel {
    public FavoriteTreeModel() {
    super();
    public FavoriteTreeModel(java.lang.Object p1, java.lang.String p2) {
    super(p1, p2);
    @Override
    public boolean isContainer() {
    return ((TreeNode)getRowData()).isLeaf();
    how to make the node chooseable,and how to get the choosed node?

    Hi,
    the tree component has a selectionListener property that you need to wire with a method on your tree model using EL
    Frank

  • How to make 2 Node File Cluster with SAS Disks

    Hello,
    I cant fine any detailed, specific information and answer on this question
    I have 2 Servers, Say HP, with 4 SAS disks each,  1 for OS (2012R2Data) and 3 available.
    I want to create fault tolerant SMB 3.0 share for my Hyper-v nodes, to make hyper-v FT cluster afterwards.
    So, I see inr equirements that SAS disks will work, but during creating cluster, I can not manage Cluster to see disks from both servers (total 6 free units)
    If it is made via ISCSi target, both servers have access to that targets and cluster sees all available through iSCSI disks, but how to mnake SAS disk available to other server?
    Is it possible what I need with this configuration?  is it a option to make each server iSCSI target and initiator? (but it would be way complicated and slow, I think).
    so, what I have misunderstood, how to make FT file Cluster with 2 servers with SAS drives?
    Any info about this SPECIFIC config would be welcomed, or any general step-by-step guides  (please, do not link me guides with other config, like iscsi or with additional servers, I have seen a lot of them :()
    thanks

    Hello,
    I cant fine any detailed, specific information and answer on this question
    I have 2 Servers, Say HP, with 4 SAS disks each,  1 for OS (2012R2Data) and 3 available.
    I want to create fault tolerant SMB 3.0 share for my Hyper-v nodes, to make hyper-v FT cluster afterwards.
    So, I see inr equirements that SAS disks will work, but during creating cluster, I can not manage Cluster to see disks from both servers (total 6 free units)
    If it is made via ISCSi target, both servers have access to that targets and cluster sees all available through iSCSI disks, but how to mnake SAS disk available to other server?
    Is it possible what I need with this configuration?  is it a option to make each server iSCSI target and initiator? (but it would be way complicated and slow, I think).
    so, what I have misunderstood, how to make FT file Cluster with 2 servers with SAS drives?
    Any info about this SPECIFIC config would be welcomed, or any general step-by-step guides  (please, do not link me guides with other config, like iscsi or with additional servers, I have seen a lot of them :()
    thanks
    You cannot do what you want with a Microsoft built-in tools. MSFT require you to take your SAS disks away from your servers, buy a SAS JBOD (better more then one to get advantage of a so-called "enclosure awareness" and avoid single point of failure) and
    configure Clustered Storage Spaces with now *external* SAS drives. See:
    How to Configure a Clustered Storage Space in Windows Server 2012
    http://blogs.msdn.com/b/clustering/archive/2012/06/02/10314262.aspx
    Prerequisites
             A minimum of three physical drives, with at least 4 gigabytes (GB) capacity each, are required to create a storage
    pool in a Failover Cluster.
             The clustered storage pool MUST be comprised
    of Serial Attached SCSI (SAS) connected physical disks. Layering any form of storage subsystem, whether an internal RAID card or an external RAID box, regardless of being directly connected or connected via a storage fabric, is not supported.
    Windows Server 2012 R2 had flexed out some limitations so now ReFS is supported (but useless as VMs cannot be integrity checked and protected) and now you can use parirty spaces (also useless as they are DOG slow with a typical VM workload dominated by small
    writes, say 4KB write initiates 256KB+ parity stripe read-modify-write update). Core requirements "SAS everywhere" is still there.
    So if you don't want to mess with SAS JBODs you may give a try to a virtual SAN solutions available on the market. They can cluster a pair of hosts (even with a single port SATA drives) w/o any external hardware, only Ethernet required. There are even free
    options available. See:
    Free Virtual SAN
    http://www.starwindsoftware.com/native-san-for-hyper-v-free-edition
    Also Google (or Bing?) for DataCore and SteelEye as they have very similar native (Windows-based) offerings. + there's bunch of a VM-running storage doing more or less the same.
    Hope this helped a bit :)
    StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • How to make a Tree Node invisible?

    Hi
    I have got a JTree where I have created a DefaultTreeModel and a DefaultTreeCellRenderer. The JTree is filled to data from data base. These nodes after are used to do querys to a data base. But when in tree's level 2 has got only a child, this node I want to set like not visible. because this node i need it do querys.
    I have found a thread to explain something:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=126031
    a) A kind to do, it is so
    I make a new Class extends DefaultTreeCellRenderer, but it doesn't work, the code is here
    public class SegnalarNodoRender extends DefaultTreeCellRenderer {
      public SegnalarNodoRender() {
      public Component getTreeCellRendererComponent(JTree tree, Object value,
                                                    boolean sel, boolean expanded, boolean leaf,
                                                    int row, boolean hasFocus) {
               Component comp;
              DefaultMutableTreeNode nodo = (DefaultMutableTreeNode) value;
              DefaultMutableTreeNode padreNodo = (DefaultMutableTreeNode) nodo.getParent();
               if (leaf && sel)  {
                 return super.getTreeCellRendererComponent(tree,value,sel,
                                                           expanded,leaf,row,hasFocus);}
               else
                 if (!leaf && nodo.getLevel()==2 && padreNodo.getChildCount()==1 ) {
                 //Set not visible
                   this.setVisible(false);
                   return  super.getTreeCellRendererComponent(tree, value, false,
                                                             expanded, leaf, row, hasFocus);
                 else {
                   return super.getTreeCellRendererComponent(tree, value, false,
                                                             expanded, leaf, row, hasFocus);
    }b) the anoher kinds it explains how to make it. It is extended a class from DefaultTreeModel, But it is in this function the this class(botton), where I don't know how the node sets to invisible. Why NodoPadre hasn't any function to set invisible.
    public Object getChild(Object parent, int index) {
      // DefaultMutableTreeNode NodoPadre = (DefaultMutableTreeNode) parent;
      // TreeNode p;
      // p = NodoPadre.getParent();
       return parent;
    }I hope somebody can help me.
    thanks in advanced.

    Hi,
    I have the same problem and would realy like to know how to do this´, using ADF Faces 11G with the up to date JDeveloper.
    I've found some blog entries in the web showing how to do this with a POJO-based approach. They insert Data programmatically based on a view object's result set, reading all data and inserting the data to the POJO.
    However, I like to
    1) Drag-And-Drop the data-control (based on one master and one details - view object and a view link) to a page and add it as tree table
    2) Get the folder icon only displayed when there are children
    3) get the last child (=leaf) displayed without folder icon.
    To make this possible, we should somehow extend the TreeModel Class and override the function isContainer
    @Override
    public boolean isContainer() {
      if (getRowData() != null) {
         MyRowImpl value = (MyRowImpl) getRowData();
        if (value.getChildValues() != null &&
           value.getChildValues().size() > 0) {
          return true;
        return false;
    }Can somehow please give me a hint how to extend the tree model base class (What class?) and how to get the framework to use this model class?
    Maybe there is a sample application for 11g somewhere?
    Thanks,
    Stefan
    Edited by: Stefan1979 on 04.11.2009 18:10

Maybe you are looking for