Treeview control - How to make a node blink?

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 ...

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;

Similar Messages

  • 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

  • JTree: How to make few nodes editable

    I have a JTree which displays some complex expression.
    I want to make few nodes of the JTree editable and specify JCombobox as an editor. How can I do this?
    Any help or pointer?
    Thanks in advance
    Sachin

    I want to make few nodes of the JTree editablei'm not sure how you can do this - there is JTree.setPathEditable(boolean) but this means you'd have to subclass JTree ?
    you might be able to make a cell editor that returns some value to indicate a particular cell isn't editable, or failing that return a read-only component but I've not tried this..
    and specify JCombobox as an editor.this may help:
    http://www.cs.cf.ac.uk/Dave/HCI/HCI_Handout_CALLER/node156.html
    asjf

  • 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 some nodes invisible?

    I set up a xml tree with JTree.Now I want to make some nodes invisible like the nodes which the name of the node is "datatype",how can I ?Thank you.

    I don't know if the nodes can be made invisible. But if you make cell renderer then you can evaluate the value before displaying it. If value is like 'datatype', you display (cell renderer displays) nothing as value in the cell.

  • How to make a node of a Hierarchical Tree BOLD

    When we click the node of a Hierarchical Tree, we want to make the node BOLD. We tried using set item property but it's not working.

    There aren't really any built-ins that will allow you to change the Font Weight of the Tree Node Label. You might be able to accomplish this with Java, but you would have to write your own Java Bean to implement. It might be easier to simply add an Asterisk (*) to the label programatically using the Set-Tree-Node-Property() built-in, but this presents problems with removing the asterisk when you leave the selected node or select a new node. It can be resolved, but you'll have to record all the information you'll need to reset the node - namly just the Node_ID.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Feb 24, 2012 7:52 AM

  • How to make entire node attribute elements as read-only ?

    Hi Experts,
    I have an requirement to make all fields of an form view (based on one context node) in UI to be shown in Display mode. Any idea on how to acheive that ?
    I know get_i_xxxx method. But, they should be coded for each attribute seperately. Any method based on node level ?
    Also, any method based on entity ? I see a method 'switch_to_change_mode' of class cl_crm_bol_entity. But, there is no other method to change to display mode.
    Thanks & Regards,
    Gaurav.

    Hi Gaurav,
      In your htm page you can place the below thing.
    displayMode     = "<%= controller->view_group_context->is_view_in_display_mode( controller ) %>" />
    When the user clicks on the Edit button , in the edit event handler set the view to change mode using method SET_VIEW_EDITABLE.
    Hope this helps you.
    Regards,
    Lakshmi.Y

  • How to make parent node JCheckbox

    How can I make the parent node in
    http://www.java2s.com/Code/Java/Swing-JFC/CheckBoxNodeTreeSample.htm
    to a checkbox.
    Any help is greatly appreciated.
    Regards,
    Anees

    See my example here: [http://forums.sun.com/thread.jspa?threadID=5180008&messageID=9699576]
    If you have a specific problem post a Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the problem.

  • How to make a node storage disabled for a particular cache?

    I have multiple caches that are distributed across the nodes in my application. Can I disable storage (localstorage=false) for a certain cache in a node.
    Intention is to make something like this:
    CacheA distributed between node1 and node2
    CacheB distributed between node1 and node3
    Thus none of the node would be a non storage node completely here. Hence I would be required to specify this in the coherence-config.xml. If the answer is following for node 2
    <distributed-scheme>
         <scheme-name>CacheB</_CacheEvent_scheme-name>
         <service-name>DistributedCache</service-name>
         *<local-storage>false</local-storage>*
         <backing-map-scheme>
         <local-scheme>
         <scheme-ref>backingSchemeB</scheme-ref>
         </local-scheme>
         </backing-map-scheme>
         <autostart>true</autostart>
         </distributed-scheme>
         <local-scheme>
         <scheme-name>backingSchemeB</scheme-name>
         </local-scheme>
    What should be the backing scheme, as my local storage is false for cacheB?

    Hi Mahesh,
    you can control the storage-enablement of distributed caches on a per-service basis.
    In your case, you have to put cache A and cache B into different services (serviceA and serviceB for the example) and run service A as storage-enabled on nodes 1 and 2, and service B as storage-enabled on nodes 1 and 3.
    For more information, look at my post from two years ago:
    Re: Partitioned cache - where to put what config files?
    Best regards,
    Robert

  • How to make a node 3 undotbs recover in RCA

    Hi Experts,
    We have 4 node RAC with database 10.2.0.4 at ASM in redhat
    I got an error as
    ORA-00376: file 6 cannot be read at this time
    ORA-01110: data file 6: '+DATA1/sale/datafile/undotbs3.272.690290289'
    even I created new undotbs3b and made new undotbs3b as default undo at node3.
    I still get some error.
    I check example at ORA-00376
    I try to recover datafile as
    SQL> select ONLINE_STATUS from dba_data_files
    2 where file_id = 6;
    ONLINE_
    RECOVER
    SQL> recover datafile 6;
    ORA-00279: change 7367573185205 generated at 01/23/2010 02:18:30 needed for
    thread 3
    ORA-00289: suggestion : +FLSDISK1
    ORA-00280: change 7367573185205 for thread 3 is in sequence #2526
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    I got above error message.
    How to recover undotbs3 at node3.
    I am looking for help!!
    JIm

    Hi damorgan ,
    CREATE UNDO TABLESPACE "UNDOTBS3B" DATAFILE
    '+DATA1/sale/datafile/undotbs3b.678.709037439' SIZE 7340032000
    AUTOEXTEND ON NEXT 104857600 MAXSIZE 32767M
    BLOCKSIZE 8192
    EXTENT MANAGEMENT LOCAL AUTOALLOCATE
    SQL> column file_name format a50
    SQL> SELECT file_name, status FROM dba_data_files;
    ILE_NAME STATUS
    DATA1/sale/datafile/users.267.690290115 AVAILABLE
    DATA1/sale/datafile/sysaux.263.690290115 AVAILABLE
    DATA1/sale/datafile/undotbs1.268.690290115 AVAILABLE
    DATA1/sale/datafile/system.273.690290113 AVAILABLE
    DATA1/sale/datafile/undotbs2.269.690290179 AVAILABLE
    DATA1/sale/datafile/undotbs3.272.690290179 AVAILABLE
    DATA1/sale/datafile/undotbs4.271.690290179 AVAILABLE
    DATA1/sale/datafile/audit_data.261.690804837 AVAILABLE
    DATA1/sale/datafile/users.266.691065529 AVAILABLE
    DATA1/sale/datafile/dvptbs.276.694187101 AVAILABLE
    DATA1/sale/datafile/users.265.691628111 AVAILABLE
    ILE_NAME STATUS
    DATA1/sale/datafile/users.264.691628151 AVAILABLE
    DATA1/sale/datafile/users.259.691628381 AVAILABLE
    DATA1/sale/datafile/users.257.691628523 AVAILABLE
    DATA1/sale/datafile/users.258.691628555 AVAILABLE
    DATA1/sale/datafile/users.256.691628587 AVAILABLE
    DATA1/sale/datafile/users.274.691628611 AVAILABLE
    DATA1/sale/datafile/users.275.691628671 AVAILABLE
    DATA1/sale/datafile/undotbs3c.571.709068541 AVAILABLE
    I check each node. all default undotbs does not use undotbs3. the pfile and spfile also does not point to undotbs3.
    Can I drop undotbs3? it does not need to use. we can reload data again
    What do I need to do next?
    I am waiting for help!!
    Jim
    Edited by: user589812 on Jan 24, 2010 8:22 AM

  • DMEE : how to make parent node disappear when child node is empty

    Hi Friends ,
    Currently i am working on DMEE , I have a problem . When Child node is empty I donot want the parent node to appear in the tree.Here I am uisng a field via exit function module for childnode. so not a fpay* strucutre field to write a condition.
    Is there any other way for this ?
    Please help.
    Komaravolu

    I'm not sure if this can be done in DMEE tree, but there is BADI DMEE_BADI_01 that can be implemented to perform any kind of postprocessing right before the file is created. I used it, for example, to replace separators with tabs. I believe this can also be used to eliminate the unneeded nodes.

  • How to make Interface node in an Enhancement Implementation

    I am adding my own context node in the component controller inside an enhancement implementation.  It does not allow me to choose that it is an "Interface Node".  The check box is greyed out. Please help.

    I dont think it allows you to select interface node even if it is your own context node using enhancement implementation.
    i checked in my system and result is same
    Thanks
    Bala Duvvuri

  • How to make this effect ? ( video )

    Hi all
    how to make the screen blink dark like in this video  http://www.youtube.com/watch?v=TszuTgFx93U
    starts at 0.46 end at 0.50
    can anyone tell me hows it called ?

    If you mean this effect and then changing to a black screen then this is a glow with an add blend mode and a blur followed by a black layer multiplied with opacity keyframes.
    I would put the video on the bottom layer, then add an adjustment layer and set the in and out point of the adjustment layer to the length you want to have this effect. It's only a few frames in the sample video. Then I'd go to the middle of the adjustment layer and add Glow to see if you could get close to this effect. Then I'd animate the opacity of the adjustment layer from zero to 100 over a few frames. I'd then set a new black solid above that and set the blend mode to Multiply. Set the in point just past the second keyframe in the adjustment layer and set the opacity to 0. Then move in a few frames and set the opacity of the black solid to 100% and set the out point of the adjustment layer to the same spot. Then move down a frame or two and set another opacity keyframe for the black solid at 100% then move down a few frames and set the opacity to zero and set an out point for the black solid.
    Figuring these things out is just a matter of looking at the frames and trying to figure how to stack layers up to achieve the effect. Grab some stills from various parts of an effect you are trying to copy and then try and figure out what you could do to the footage to get the same result. Only a few of the effects you see are just a single plug-in applied to a single layer. This is the best way to learn After Effects.
    Here's what a comp would look like using a frame from the sample video. Note that the adjustment layer and the black solid are only a few frames long. I made a quick stab at the color grading of the frame by making some adjustments to the A and B colors of the glow, added some blur, and added a little color correction to the adjustment layer using curves. This should get you started.

  • Add New Node - Adobe Director Microsoft Treeview Control 6.0 xtra?

    Can some one help me on how to add new node to TreeView Control provided as xtra with Adobe Director. Tried using sprite(1).Nodes.Add but not working. Please assist

    Right, I am accessing the control via Insert  ->Controls -> ActiveX -> Microsoft Treeview. (unable to find any documentation)
    I am actually trying to make a treeview and on selection do some stuff.
    I have tried using CxtraPopup to create the same but when publishing it says unregistered version.
    Can you please suggest any xtra that supports Menu.
    Thanks

Maybe you are looking for

  • How to use a select list value in a PL/SQL function body returning SQLquery

    Hi Friends, I have a select list P6_TEST with values 'nav' anf 'jyo'. I am trying to create a report using "SQL Query (PL/SQL function body returning SQL query)". In my report query can i check if P6_TEST='nav' and do something like the code shown be

  • Discoverer integration with EBS R12 !!!

    Hello Sir, I need help to install/integrate Discoverer with R12. Actually, our clients are using Discoverer 4i in current EBS 11.5.10.2 in production. We have just upgraded EBS in TEST environment from 11.5.10.2 to R12.1.3. I had suggested client tha

  • Unable to view Service notification in CIC fact sheet

    In the Customer Interaction Center for Utilities(CIC0), I'm unable to view a certain service notification under a custom fact sheet. However, if I try to view it by accessing CIC from ECC, it is visible there. What could be the possible issue?

  • SAP MM CIN Pricing procedure

    Hi, I am a SAP MM learner. I have done the pricing procedure for CIN (ZAXINN) in IMG - FI part.  I have assigned the calculation procedure to the country IN also.  But while creating the PO, the calculation procedure taken is RM00001 from MM.  Becaus

  • How can I change the text   color in pages

    Hi , how can I change the text color in pages app