Tree view with editable cells?

Hi,
I have written a GTK+-2 based graphical visualizer for the NEC2 antenna simulation and analysis tool http://www.qsl.net/5b4az/pages/nec2.html and I am now considering a companion graphical editor for the NEC2 input file. This file is normally produced with a text editor and specifies antenna geometry and then commands to calculate various data regarding antenna characteristics (gain, input impedance etc).
Luckily the original NEC2 was written in FORTRAN and the input was punched cards with a fixed format, so the current file format is line-based and with a fixed number of parameters per line: you can get an idea by looking into examples files in http://www.qsl.net/5b4az/pkg/nec2/examples/
What I need is an idea on how to code a graphical line editor with editable cells for each parameter and the ability to add or delete lines as needed. The data in the cells may be numerical or textual or both and there may be inter-relations between cells, e.g. one cell may have a value that is a fixed proportion of another cell's value etc.
Tips please? Thanks!

tranquility wrote:
Well, just about any language with bindings for gtk will work in a very similar manner. If I understand correctly, you might want to investigate the GTK treeview and GTK CellRenderer classes. Try to check the tutorials too.
Hope this helps.
Yes, thanks! Unfortunately though there is no easy way to have a spin button type editable cell, which would have been best for my needs. However, I found an example in a tutorial for the TreeView which could make a basis for a home brew second-best solution! 

Similar Messages

  • Tree View with BLOB

    Ive displayed some workers with their departments in a tree view, but does somebody now how to put in their BLOB picture instead of their name into the tree view.
    i thougt that i just rewrite the tree views "Node Text Template" but therefore i will need the image src??? so how to get the src from the BLOB picture from the table???
    <tr>#INDENT#<td colspan="#COLSPAN#" valign="CENTER" class="tiny">#NAME#</td>
    <td>
    <img src=???????????? /> // it could be the worker number or something to get the blob src.
    </td>
    </tr>
    Please help me.
    thanks.

    807703,
    Can you set your name on the forum settings?
    Ok, the item name is just an example, your just using it as a placeholder to pass the key to the picture you want to receive, if your tree is on page 3, create the item called P3_EMP_NO for example.
    Your then setting the value of that item through the image source URL, and the application process can use it to present the right picture.
    If you want to see a sample of this working in 4.0 take a look at my app on apex.oracle.com.
    http://apex.oracle.com/pls/apex/f?p=9660:200 (tested in chrome only - should work on all browsers though)
    Edit: Just checked compatibility - it works in IE and chrome but not firefox! Not immediately apparent why.
    Page 200, login demo / demo2. (account has developer access so you can take a look at the page definition. There are only pictures for 4 photos).
    Note the css in the tree view region definition to change the picture and line size.
    'm guessing you're on 3.2 from your first post, I don't have 3.2 so I can't see where the img tag should go there (on 4.0 I put the url in the icon part of the sql query).
    James
    Edited by: James C on Nov 8, 2010 8:17 AM

  • Issue with editable cell of a tableVIew...

    Hi All,
    I have a tableView with 4 fields, one of the fields QUANTITY is editable .
    Now for ex. if there are 5 rows in the TV , if the user selects all 5 and then enters value for QUANTITY field and clicks on the SUBMIT button , the user is navigated to the next page and i can capture these values in my itab,
    but if the user selects one row and enters value for QUANTITY field  and then selects the second row , ROWSELECTION event is triggered and the page is refreshed ,
    so when the page is displayed agan the value enterd in the QUANTITY field for previous row  is gone and the fiels becomes blank.
    how to show the value for this field , after the page is displayed again after refreshing????
    Thanks,
    Anubhav.

    Hi Raja,
    I really cantfigure out how to solve my isuue using your code.
    The code for my TV is:
    <htmlb:tableView             id              = "material"
                                               headerText      = "Materials"
                                               headerVisible   = "true"
                                               design          = "alternating"
                                               visibleRowCount = "10"
                                               fillUpEmptyRows = "true"
                                               onRowSelection  = "MyEventRowSelection"
                                               selectionMode   = "MULTILINEEDIT"
                                               table           = "<%= itab_materials %>" >
                              <htmlb:tableViewColumns>
                                  <htmlb:tableViewColumn columnName="MATNR" title="Material Number" width="150">
                                  </htmlb:tableViewColumn>
                                  <htmlb:tableViewColumn columnName="MAKTG" title="DESCRIPTION" width="200">
                                  </htmlb:tableViewColumn>
                                  <htmlb:tableViewColumn columnName="VERPR" title="PRICE" width="150">
                                  </htmlb:tableViewColumn>
                                  <htmlb:tableViewColumn columnName="QUNTY" title="QUANTITY" edit="TRUE" width="200">
                                  </htmlb:tableViewColumn>
                                  <htmlb:tableViewColumn columnName="MEINS" title="UNIT" width="150">
                                  </htmlb:tableViewColumn>
                              </htmlb:tableViewColumns>
                           </htmlb:tableView>
    ITAB_MATERIALS has folowing fields:
    MATNR
    MEINS
    MAKTG
    VERPR
    How to capture the value of FIFTH field QUANTITY and display it when the next row is selected and the page is refrehsed?
    Thanks,
    ANubhav.

  • CS3/CS4 - Tree view with dynamic height/width

    Hi,
    I have a resizable panel that contains a treeview, when the panel is resized the treeview resizes but I would also like the treeview nodes to adjust their width. For the record, -my treeview nodes contain static text widgets and images.
    Can I hook up some observers and manually resize the widgets when the panel resizes?
    Kind regards Toke

    If your node re-size needs are simple you may achieve it by setting e.g. kBindRight | kBindLeft on the appropriate widgets in the .fr file.  For a complex view I'd extend PalettePanelView to create your own implementations of Resize (adapting the widget widths in there) and perhaps ConstrainDimensions.
    Ian

  • SharePoint Custom Tree view with CheckBoxes

    How to Unhide and Hide Treenodes in treeview based on Checkbox checked changed event in Asp.net
    Badri

    How to
     hide/unhide the all Treenodes on Treeview based on Checkbox changed event?
    Checkbox(Control)
    1.Checkbox Checked:(Action below like)
     if user click on  Checkbox, all the treenodes on treeview is hide.
    2.Checkbox Unchecked(Action below like)
    If user uncheck the Checkbox  all the treenodes on treeview is unhode.
    Thank you for your understanding, Iam not good at english.
    Could you please help me how to do above one.
    Badri

  • Tree View Second level is not displaying bind parameter

    Studio Edition Version 11.1.2.2.0appears this problem is addressed in
    http://dailydevfixes.blogspot.com/2011/07/setting-bind-parameters-on-hierarchy-of.html
    unfortunately I must be missing something.
    as a test using the hr schema
    I was doing a tree view with hire date as the first level then the employee id, last name and first name as the second level.
    I hard coded employee id of 187 on a bean called by a button.
    the first level is updated unfortunately the second level is not (employee id 107 should not show up)
    --1999-02-07
    ----- 187 Cabrio Anthony
    ----- 107 Lorentz Dianahere is my bean the first level is updated but the second level is not not quite sure what I am missing
        public void ButtonClick(ActionEvent actionEvent) {
            BindingContext bindingctx = BindingContext.getCurrent();
            BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
            DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
            DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("ParentVO1Iterator");
            ViewObject Parentvo =dciter.getViewObject();
            Parentvo.setNamedWhereClauseParam("empid",187);
            Parentvo.executeQuery();
            AttributeDef attrDef = Parentvo.findAttributeDef("ChildVO");
            ViewObject childvo = attrDef.getAccessorVO(Parentvo);
            childvo.setNamedWhereClauseParam("empid",187);
            childvo.executeQuery();
            AdfFacesContext adfFCtx = AdfFacesContext.getCurrentInstance();
           adfFCtx.addPartialTarget(treeupdate);
        }here is the query for the parent view object.
    select trunc(hire_date) hire_dt
    from employees
    where :empid is null or employee_id = :empid
    group by trunc(hire_date)here is the query for the child view object
    select trunc(hire_date) hire_dt, employee_id, employee_id||' '||last_name||' '||first_name nm
    from employees
    where :empid is null or employee_id = :empid
    order by trunc(hire_date)here is the view link
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewLink SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewLink
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="ParentToChildViewLink"
      Version="11.1.2.61.83">
      <Properties>
        <SchemaBasedProperties>
          <LABEL
            ResId="model.view.link.ParentToChildViewLink_LABEL"/>
        </SchemaBasedProperties>
      </Properties>
      <ViewLinkDefEnd
        Name="ParentVO"
        Cardinality="1"
        Source="true"
        Owner="model.view.ParentVO">
        <DesignTime>
          <Attr Name="_accessor" Value="true"/>
          <Attr Name="_finderName" Value="ParentVO"/>
          <Attr Name="_isUpdateable" Value="true"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="model.view.ParentVO.HireDt"/>
        </AttrArray>
      </ViewLinkDefEnd>
      <ViewLinkDefEnd
        Name="ChildVO"
        Cardinality="-1"
        Owner="model.view.ChildVO">
        <DesignTime>
          <Attr Name="_finderName" Value="ChildVO"/>
          <Attr Name="_isUpdateable" Value="true"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="model.view.ChildVO.HireDt"/>
        </AttrArray>
      </ViewLinkDefEnd>
      <ResourceBundle>
        <PropertiesBundle
          PropertiesFile="model.ModelBundle"/>
      </ResourceBundle>
    </ViewLink>and here is the tree
        <af:tree value="#{bindings.ParentVO1.treeModel}" var="node"
                                 selectionListener="#{bindings.ParentVO1.treeModel.makeCurrent}" rowSelection="single"
                                 id="t1" binding="#{myBean.treeupdate}">
                            <f:facet name="nodeStamp">
                                <af:outputText value="#{node}" id="ot1"/>
                            </f:facet>
                        </af:tree>

    thanks I am working through that example unfortunately I ran into a problem
    previously (in my real application) I was using bind parameters and my query had the following where clause.
    ( I did this to turn a comma separated list into an in statement)
      WHERE    :Bind_Batch_NM_Comma_Sep_List IS NULL
             OR batch_nm IN
                   (    SELECT REGEXP_SUBSTR (:Bind_Batch_NM_Comma_Sep_List,
                                              '[^,]+',
                                              1,
                                              LEVEL)
                                  batch_nm
                          FROM DUAL
                    CONNECT BY LEVEL <=
                                    REGEXP_COUNT (:Bind_Batch_NM_Comma_Sep_List,
                                  + 1)however in the example presented you are to create view criteria and there is a panel on the right called view object where clause but I can not figure out how to type into it directly
    and I find it unlikely I can recreate this where clause using the add item button.
    is there a way to manually type the where clause in the view object where clause box?

  • How to blick tree view few specific nodes

    here i got a code which show how to blink tree view node but i am confuse that how to blink few node.
    Answered by:
    Avatar of Tamer Oz
    20,185
    Points
    Top 0.5
    Tamer Oz
    Partner Joined Sep 2009
    2
    8
    17
    Tamer Oz's threads
    Show activity
    Treeview control - How to make a node blink?
    Visual Studio Languages
    .NET Framework
    >
    Visual C#
    Question
    Alert me
    Question
    Vote as helpful
    0
    Vote
    Hi,
    Is there a "elegant" way to make blink a treeview node?
    I am thinking to use a timer with the collection of nodes that I want to make the blink effect, and update the icon ...
    Friday, November 06, 2009 6:19 PM
    Reply
    |
    Quote
    |
    Report as abuse
    Avatar of Kikeman
    Kikeman
    R. BOSCH
    105 Points
    All replies
    Question
    Vote as helpful
    0
    Vote
    Hi,
    You can develop your custom control for this purpose. The logic you mentioned was correct. Here is a sample control that I developed by the logic you mentioned.
    public class BlinkingTreeView : TreeView
    private Timer t = new Timer();
    private List<TreeNode> blinkingNodes = new List<TreeNode>();
    public BlinkingTreeView()
    t.Interval = 1000;
    t.Tick += new EventHandler(t_Tick);
    bool isNodeBlinked = false;
    void t_Tick(object sender, EventArgs e)
    foreach (TreeNode tn in blinkingNodes)
    if (isNodeBlinked)
    //update Icon
    tn.Text = tn.Text.Substring(0, tn.Text.Length - 1);//to test
    isNodeBlinked = false;
    else
    //update Icon
    tn.Text = tn.Text + "*";//to test
    isNodeBlinked = true;
    public void AddBlinkNode(TreeNode n)
    blinkingNodes.Add(n);
    public void RemoveBlinkNode(TreeNode n)
    blinkingNodes.Remove(n);
    public void ClearBlinkNodes()
    blinkingNodes.Clear();
    public List<TreeNode> BlinkingNodes
    get { return blinkingNodes; }
    public int BlinkInterval
    get { return t.Interval; }
    set { t.Interval = value; }
    public void StartBlinking()
    isNodeBlinked = false;
    t.Enabled = true;
    public void StopBlinking()
    t.Enabled = false;
    just show me how to use BlinkingTreeView class. i will have tree view which will have few node and few nodes may have few child nodes. now how to achieve by this class BlinkingTreeView and show me how to blink few specific node not all. thanks

    better to come with code. first populate tree view with some dummy node this way
    Root
           Child1
                    Child1-sub1
                    Child1-sub2
           Child2
                    Child2-sub1
                    Child2-sub2
    now blink Child1-sub2 & Child2-sub1. please come with code. thanks

  • How to hide a list from SharePoint tree view pro grammatically.

    Hi,
    I have enabled tree view for a SharePoint 2013 site pro grammatically. 
    I want hide some specific lists from that tree view like Documents, Workflow, Task List, Calender
    Lists which are created default when we create a site.
    How could i do that?

    I know how to hide Quick launch and Enable Tree view with properties in C#.
    My question is 
    hide some specific lists from that tree view like Documents,
    Workflow, Task List, Calender
    Lists which are created default when we create a site.

  • Please Help(How to get RadioButtons in tree View)

    Hi.
    Sub/Requirement: How to implement RadioButtons in tree view with/without using xml file.
    I have a requirement like this i want to display RadioButton in tree view.
    I implemented tree same as which is given in sampleApplications.
    In this sampleApplications they implemted tree by using xml file.
    I also implemented tree by Generating xml file. In this xml file i get the values from the database. I am using <netui:tree > tag.
    Is it possible to implement tree without using xml file. I need to generate tree Dynamically.
    Please any one help me to come out with this solution.

    The issue here is while you are retrieving all the details, you are consistently overwriting them in the request.setAttribute() call before you get to the JSP to display them.
    Do you actually have a class/object called Student?
    That object should have attributes for classes, subjects, teachers (all of which are lists apparently)
    public class Student{
      String name;
      List classes;
      List subjects;
      List teachers;
      // appropriate getter/setter methods
    }Then you load each student, and populate its individual lists.
    That lets you pass the list of students, each student having its own lists for display.
    Hope this helps,
    evnafets

  • Tree View Creation error

    Hi,
    I have to create  tree view. I followed the stpes mentioned at the following link.
    Tree View
    I have created a Z-structure and created a table view in the component BT111H_OPPT component.
    While trying to modify the .htm page for the tree view, with the code mentioned at above link, I am getting following error.
    "node_tab is unknown. Not declared by a data statement."
    (see the line number 4 -  nodeTable = "<%= mytreenode->node_tab %>")
    I am using the following code.
    <chtmlb:tableExtension tableId = "Table"
                           layout  = "FIXED" >
      <chtmlb:configTree id                        = "configTree"
                         nodeTable                 = "<%= mytreenode->node_tab %>"
                         nodeTextColumn            = "NODE_TYPE"
                         onCollapseNode            = "nodeCollapse"
                         onExpandNode              = "nodeExpand"
                         onRowSelection            = "select"
                         onNodeClick               = "nodeClick"
                         ajaxDeltaHandling         = "FALSE"
                         headerText                = "Demo Tree"
                         allRowsEditable           = "TRUE"
                         selectionMode             = "SINGLESELECT"
                         table                     = "//mytreenode/Table"
                         tableLayout               = "AUTO"
                         visibleRowCount           = "12"
                         usage                     = "EDITLIST"
                         fillUpEmptyRows           = "FALSE"
                         personalizable            = "TRUE"
                         scrollable                = "TRUE"
                         noFrame                   = "X"
                         downloadToExcel           = "FALSE"
                         onClose                   = "closeTree"
                         onIncreaseSize            = "increaseTree"
                         nodeTextColumnDescription = "NODE" />
    </chtmlb:tableExtension>
    Please let me know where and how should I decalre it.
    Regards,
    Ansal

    Thanks Arun.. for the quick response...
    After view creation, I was directly following your second section of the thread....
    My issue is resolved....
    Hope to get further help for this object development.
    My requirement is add a new assignment block in opportunity screen which will show all the quotation,with their details, created for this opportunity and on click of each quotation id, all the items mapped to that particular quotation should be visible in same view.
    Thanks & regards,
    Ansal

  • Folder list - tree view

    I'm trying to build a tree view of an account's folders but I keep
    running into a problem no matter which approach I take. In the code
    snippet below I'm using the PopulateTree method recursively to add
    nodes to the tree view. This works using the .NET GW API but when I
    use SOAP it seems that I get my root folder, my Mailbox (which is
    immediately below my root folder) but when the function recurses
    against what should be a different list of (sub-) folders I end up
    with the root and Mailbox folders in the next call to PopulateTree.
    I've also tried doing the first level inline with the initializing
    code, calling PopulateTree against each of the folders in the first
    level as the parent folders but I still seem to only get the root
    folder and Mailbox again within the foreach loop of the PopulateTree
    method. Otherwise, I can list all the folders in a text string if I
    ask for a recursive listing.
    treeFolders.Nodes.Clear();
    PopulateTree(treeFolders.Nodes[0], "Folders");
    private int PopulateTree(TreeNode parentNode,
    string parentFolderID)
    WR.getFolderListRequest flreq =
    new WR.getFolderListRequest();
    flreq.recurse = false;
    flreq.parent = parentFolderID;
    WR.getFolderListResponse flres =
    ws.getFolderListRequest(flreq);
    if (flres.status.code != 0) return flres.status.code;
    TreeNode localNode;
    int folderCount = flres.folders.Length;
    foreach (WR.Folder folder in flres.folders)
    localNode = parentNode.Nodes.Add(folder.name);
    PopulateTree(localNode, folder.id);
    localNode = null;
    return 0;

    Right call it once recursive, and then cache in Map or similar structure.
    On 12/20/2012 5:58 AM, Preston Stephenson wrote:
    > There are issues with certain folders. You really should only call
    > getFolderListRequest the one time doing recurse true. You should
    > cache the results. You can build u a tree view with the results.
    > At least that is what I do.
    >
    > Preston
    >
    >>>> On Wednesday, December 19, 2012 at 8:48 AM, Lilith<[email protected]>
    > wrote:
    >> I'm trying to build a tree view of an account's folders but I keep
    >> running into a problem no matter which approach I take. In the code
    >> snippet below I'm using the PopulateTree method recursively to add
    >> nodes to the tree view. This works using the .NET GW API but when I
    >> use SOAP it seems that I get my root folder, my Mailbox (which is
    >> immediately below my root folder) but when the function recurses
    >> against what should be a different list of (sub‑) folders I end up
    >> with the root and Mailbox folders in the next call to PopulateTree.
    >>
    >> I've also tried doing the first level inline with the initializing
    >> code, calling PopulateTree against each of the folders in the first
    >> level as the parent folders but I still seem to only get the root
    >> folder and Mailbox again within the foreach loop of the PopulateTree
    >> method. Otherwise, I can list all the folders in a text string if I
    >> ask for a recursive listing.
    >>
    >> treeFolders.Nodes.Clear();
    >> PopulateTree(treeFolders.Nodes[0], "Folders");
    >>
    >> private int PopulateTree(TreeNode parentNode,
    >> string parentFolderID)
    >> {
    >> WR.getFolderListRequest flreq =
    >> new WR.getFolderListRequest();
    >> flreq.recurse = false;
    >> flreq.parent = parentFolderID;
    >>
    >> WR.getFolderListResponse flres =
    >> ws.getFolderListRequest(flreq);
    >>
    >> if (flres.status.code != 0) return flres.status.code;
    >>
    >> TreeNode localNode;
    >> int folderCount = flres.folders.Length;
    >> foreach (WR.Folder folder in flres.folders)
    >> {
    >> localNode = parentNode.Nodes.Add(folder.name);
    >> PopulateTree(localNode, folder.id);
    >> }
    >> localNode = null;
    >>
    >> return 0;
    >> }

  • ALV Grid editing cell cursor position

    Hello !
    i hope i can get the answer to my question here.
    i have an alv-grid with editable cells
    when i click in one cell (it is a textfield) where there is no more written text it marks the hole cell and when i start to write, it overwrites the whole text.
    i would like the cursor to be placed at the end of the field in this case.
    when i click in the cell where there is written text it is ok - it puts the cursor to the clicked position.
    thanks very much for your help
    Helmut

    Hi, i am also facing same probelm.
    after  call method sender->refresh_table_display.
    i am using
    call method sender->set_current_cell_via_id
          exporting
            is_row_id    = l_rowid
            is_column_id = l_colid.
    this will simply select the cell. i am not able to see curser in end or front of the cell.Can anybody please suggest me how to it.
    Thanks
    Sudhakar

  • Assign focus on text field associated with tree item in edit mode

    The JavaFX home page has an example for how to edit the label associated with a tree item using a cell factory (see sample code below). However, if you select a tree item and then either mouse click or select the Enter key to start editing, the text field doesn't get focus even though the startEdit() method invokes textField.selectAll(). I tried invoking textField.requestFocus(), but that didn't work. Is there a way to ensure that the text field gets focus when the tree item is in edit mode?
    I'm using JavaFX 2.1 GA version on Windows 7.
    Thanks.
    Stefan
    @Override
    public void startEdit() {
    super.startEdit();
    if (textField == null) {
    createTextField();
    setText(null);
    setGraphic(textField);
    textField.selectAll();
    public class TreeViewSample extends Application {
    private final Node rootIcon =
    new ImageView(new Image(getClass().getResourceAsStream("root.png")));
    private final Image depIcon =
    new Image(getClass().getResourceAsStream("department.png"));
    List<Employee> employees = Arrays.<Employee>asList(
    new Employee("Ethan Williams", "Sales Department"),
    new Employee("Emma Jones", "Sales Department"),
    new Employee("Michael Brown", "Sales Department"),
    new Employee("Anna Black", "Sales Department"),
    new Employee("Rodger York", "Sales Department"),
    new Employee("Susan Collins", "Sales Department"),
    new Employee("Mike Graham", "IT Support"),
    new Employee("Judy Mayer", "IT Support"),
    new Employee("Gregory Smith", "IT Support"),
    new Employee("Jacob Smith", "Accounts Department"),
    new Employee("Isabella Johnson", "Accounts Department"));
    TreeItem<String> rootNode =
    new TreeItem<String>("MyCompany Human Resources", rootIcon);
    public static void main(String[] args) {
    Application.launch(args);
    @Override
    public void start(Stage stage) {
    rootNode.setExpanded(true);
    for (Employee employee : employees) {
    TreeItem<String> empLeaf = new TreeItem<String>(employee.getName());
    boolean found = false;
    for (TreeItem<String> depNode : rootNode.getChildren()) {
    if (depNode.getValue().contentEquals(employee.getDepartment())){
    depNode.getChildren().add(empLeaf);
    found = true;
    break;
    if (!found) {
    TreeItem<String> depNode = new TreeItem<String>(
    employee.getDepartment(),
    new ImageView(depIcon)
    rootNode.getChildren().add(depNode);
    depNode.getChildren().add(empLeaf);
    stage.setTitle("Tree View Sample");
    VBox box = new VBox();
    final Scene scene = new Scene(box, 400, 300);
    scene.setFill(Color.LIGHTGRAY);
    TreeView<String> treeView = new TreeView<String>(rootNode);
    treeView.setEditable(true);
    treeView.setCellFactory(new Callback<TreeView<String>,TreeCell<String>>(){
    @Override
    public TreeCell<String> call(TreeView<String> p) {
    return new TextFieldTreeCellImpl();
    box.getChildren().add(treeView);
    stage.setScene(scene);
    stage.show();
    private final class TextFieldTreeCellImpl extends TreeCell<String> {
    private TextField textField;
    public TextFieldTreeCellImpl() {
    @Override
    public void startEdit() {
    super.startEdit();
    if (textField == null) {
    createTextField();
    setText(null);
    setGraphic(textField);
    textField.selectAll();
    @Override
    public void cancelEdit() {
    super.cancelEdit();
    setText((String) getItem());
    setGraphic(getTreeItem().getGraphic());
    @Override
    public void updateItem(String item, boolean empty) {
    super.updateItem(item, empty);
    if (empty) {
    setText(null);
    setGraphic(null);
    } else {
    if (isEditing()) {
    if (textField != null) {
    textField.setText(getString());
    setText(null);
    setGraphic(textField);
    } else {
    setText(getString());
    setGraphic(getTreeItem().getGraphic());
    private void createTextField() {
    textField = new TextField(getString());
    textField.setOnKeyReleased(new EventHandler<KeyEvent>() {
    @Override
    public void handle(KeyEvent t) {
    if (t.getCode() == KeyCode.ENTER) {
    commitEdit(textField.getText());
    } else if (t.getCode() == KeyCode.ESCAPE) {
    cancelEdit();
    private String getString() {
    return getItem() == null ? "" : getItem().toString();
    public static class Employee {
    private final SimpleStringProperty name;
    private final SimpleStringProperty department;
    private Employee(String name, String department) {
    this.name = new SimpleStringProperty(name);
    this.department = new SimpleStringProperty(department);
    public String getName() {
    return name.get();
    public void setName(String fName) {
    name.set(fName);
    public String getDepartment() {
    return department.get();
    public void setDepartment(String fName) {
    department.set(fName);
    Edited by: 882590 on May 22, 2012 8:24 AM
    Edited by: 882590 on May 22, 2012 8:24 AM

    When you click on a selected tree item to start the edit process is the text in the text field selected? In my case the text is not selected and the focus is not on the text field so I have to click in the text field before I can make a change, which makes it seem as if the method call textfield.selectAll() is ignored or something else gets focus after method startEdit() executes.

  • Sharepoint 2013 list view quick edit does not work with out remote API permissions

    sharepoint 2013 list view quick edit does not work with out remote API permissions.
    When I give Use Remote Interfaces  -  Use SOAP, Web DAV, the Client Object Model or SharePoint Designer interfaces to access the Web site it works which is not an ideal situation..
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    This is true. If you use Fiddler to watch the requests from the list view quick edit you can see CSOM calls. For example when changing a value in a cell, when you tab out you will see the SetFieldValue and Update method calls on the list item.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • A tree-view in HTML page with nodes generated with java script in run time is not visible in the UI Automation Tree. Need Help

    I have a HTML page with an IFrame. Inside the Iframe there is a table with a tree view
    <iframe>
    <table>
    <tr>
    <td>
    <treeview id="tv1"></treeview>
    </td>
    </tr>
    </table>
    </iframe>
    In UIA, i am able to traverse till the tree view but not able to see it.
    I have used the TreeWalker.RawViewWalker Field to traverse the node from the desktop Automation.RootElement. 
    I tried to use AutomationElement.FromPoint method to check whether i am able to get that element. Fortunately i was able to get the automation element. 
    i tried to get the path to root element from the node element using the TreeWalker.RawViewWalker. I was able to get the parent path to the root element.
    But trying the reverse way like navigating from root element to tree node, was not getting the element for me. 
    Please help me with suggestions or inputs to resolve this issue. 

    Thanks Bernard,
    It works fine with JInitiator but not working with
    the JPI. For JPI what settings I need to do ??hi TKARIM and Bernard, i am having similar problem even with the Bernard's recommended setup. could you post the webutiljini.htm (i presume you are using config=test) ?
    i am actually using jinitiator 1.3.1.28 with Oracle HTTP Server of OAS 10gR2) calling Forms Server 6i (f60cgi). After setting up according to Bernard's recommended setup steps, the java console showed that it loaded the icon jar file when it could not read the form, but it skipped the loading of the icon jar file once it read and started the form. How do we specify in the form to pick up the icon from the jar file instead from a directory ? Or do we need to specify ? Any ideas ?
    Thx and Regards
    dkklau

Maybe you are looking for

  • Is a text editor really better than Dreamweaver?

    Hi Everyone, I've been looking through several different web design forums and I'm now stuck with a question. Why do some people swear by using only a text editor to put their website together and totally discount programs such as Dreamweaver? I find

  • Problem executing command line program

    Hi I have a tuxedo command line app in Solaris 2.6. I was able to execute the program from unix prompt however when I try to do it from JAVA program, it does not work. I have to execute from command line as follows $ud32<SPACE>-U<SPACE>login<nl> SRVC

  • Calendar question on the 9530...

    Hello everyone. So this thread might be better in the newbie section, but since the storm is so different than the other BB's I figured here is a good place to start. I've had my storm since April 2009 and am just starting to use the calendar. I use

  • Cant download mms messages on btmobile.....another problem!

    hi guys,  as above....i cant download mms messages on btmobile. is there a setting i can change?? ive downloaded and installed bt's stuff and it still wont work. thanks.

  • Why in my FP-TC-120 Module, the red leds are not lighting

    The red indicator leds are not lighting, even if there its no TC conected, what could it happent the software works fine but the leds still turn off