Visibility of the custom button based on Spec stage

Hi, I was wondering if it would be possible to have one of our custom badges visible only when the specifications are in a certain State of workflow.

So I in my XML the attribute Visible tag, and currently it only checks if the specificaiton is a certain type:

Visible = "eval: ${ObjectType} is 6500" "

That works very well, but how do I add to check the status of workflow?  I could not find an example of this in the Configuratoin of Navigation Guide.

Thank you

You must pass two arguments

1. an IBaseSpec, you can get the SpecService or an ISpecSummary,.

2. a collection of tag behaviorIDs

If the following code:

else if (Oracle.Agile.PlmProcess.PLM4PExtensionUtils.Workflow.SpecWorkflowTagEvaluator.IsSpecInWorkflowStatusByTagID(SpecService, 4))

should be

(if

else if (Oracle.Agile.PlmProcess.PLM4PExtensionUtils.Workflow.SpecWorkflowTagEvaluator.IsSpecInWorkflowStatusByTagID((IBaseSpec)SpecService.Current,  new[] {SpecWorkflowTagEvaluator.TAG_IsApproved }))

or

else if (Oracle.Agile.PlmProcess.PLM4PExtensionUtils.Workflow.SpecWorkflowTagEvaluator.IsSpecInWorkflowStatusByTagID((IBaseSpec)SpecService.Current,  new[] {4} ))


. If you check just the IsApproved tag, then the SpecWorkflowTagEvaluator has a method of IsSpecApproved also which takes a single parameter, the IBaseSpec.

else if (Oracle.Agile.PlmProcess.PLM4PExtensionUtils.Workflow.SpecWorkflowTagEvaluator.IsSpecApproved((IBaseSpec)SpecService.Current))

Tags: Oracle Applications

Similar Questions

  • APEX 5.0 POP-UP window just click on the custom button

    When you click on a custom button then it will fill new pop page. How can we do this?

    I added below code in the action of URL redirection, but it won't work

    Window.Open ("f? p = 102.:6: & SESSION. popup1″ ",");

    Hello

    I prefer to use modal dialog boxes like this

    http://www.Explorer-development.UK.com/Creating-modal-dialog-Apex-5-0/

    Concerning

    Mahmoud

  • Hide & visible using the same button.

    Hi, I want to add the button to my pdf form, which should make this push button is. If I click on this button, bellows must hide the data of 4 fields. If I click again the same button until the hidden data should visible. So how can do that. even java script is not serious... pls help me. Thank you very much..

    4 fields

    Text Field0.1.1

    Text Field0.1.2

    Text Field0.1.3.1

    Text Field0.1.3.2

    Yes. The display of the field has 4 possible values.

    We could test each field and asjust the display of the found value property.

    var cField = "Field0.1.1 text"; name of the field to be addressed;

    oField = this.getField (cField) var; get the field object;
    if(oField == null) {}
    App.Alert ("error to the field-" "+ cField +" \ "", 0, 0);
    } else {}
    if(oField.Display == Display.visible) {}
    change the visible display to hidden;
    oField.display = display.hidden;
    } else {}
    set up any visible display;
    oField.display = display.visible;
    } / / end of display property;
    } / / end of the object field.

    .

    var cField = "Field0.1.1 text"; name of the field to be addressed;

    oField = this.getField (cField) var; get the field object;
    if(oField == null) {}
    App.Alert ("error to the field-" "+ cField +" \ "", 0, 0);
    } else {}
    if(oField.Display == Display.visible) {}
    change the visible display to hidden;
    oField.display = display.hidden;
    } else {}
    set up any visible display;
    oField.display = display.visible;
    } / / end of display property;
    } / / end of the object field.

    .

    You can then use the above code for each field, write a loop to change the field name of the field. You can even write a function to toggle the display between visible and hidden property.

    function GetField (cField) {}
    Returns the field object for the name cField or null;
    oField = this.getField (cField) var; get the field object;
    if(oField == null) {}
    App.Alert ("error to the field-" "+ cField +" \ "", 0, 0);
    }
    return oField;
    } / / end GetField funciton

    function ToogleDisplay (cField) {}
    Tooble the show field between hidden and display;
    var oField = GetField (cField); Retrieve the field object;
    If (oField! = null) {}
    if(oField.Display == Display.visible) {}
    change the visible display to hidden;
    oField.display = display.hidden;
    } else {}
    set up any visible display;
    oField.display = display.visible;
    } / / end of property of display field;
    } / / end of the field object not null;
    Returns true;
    } / / end of ToggleDisplay function;

    ToogleDisplay ("Field0.1.1 text"); Toogle a field;
    ToogleDisplay ("Field0.1.1 text"); Toogle a field;
    ToogleDisplay ("Field0.1.3.1 text"); Toogle a field;
    ToogleDisplay ("Field0.1.3.2 text"); Toogle a field;

    The above code will trap field name erors and advise of the number and continues to run.

  • view the different buttons based on the logged in user

    I have 2 buttons on page 8, HOUSE and ended UP, I'd like to display only one or the other of the user to the application-based.

    This arrangement allows the user to be directed to the appropriate page by right button display based on who the user is, guest or mhamil. Therefore, if the comments connects to the 101 page, then on page 8 the HOME button displayed for them to click to access the 2010 page. If mhamil connects to page 101, then to page 8 so the button COMPLETE poster for them to click on go to page 2001.

    I tried to create the two buttons like URL redirection with a target like this Application Page as an option. Then I put a condition.

    For the button COMPLETE, the condition type is 'value in the expression 1 = expression 2'. In the field of the Expression 1 I tried to: APP_USER and the value of the Expression 2 is mhamil. It did not work. The button FINISH were not demonstrating. I also tried setting in Expression 1: P101_USERNAME and the Expression 2 mhamil, but it did not work. The button FINISH were not demonstrating.

    The two buttons display unconditionally placed on them.

    Any ideas on what I'm doing wrong on my terms, I create?

    Thank you
    Maggie

    Published by: mjhamilton on December 8, 2008 10:16

    Maggie:

    Check if you are using an expression of type "pl/sql" condition works with the expression being

    Upper(:APP_USER) = "MHAMIL";

    CITY

  • display the model buttons based alongside, not above the other?

    I created 2 buttons in the same region. These buttons have a model function button button style. I created a button template that is used by them. And the 2 buttons have a mouseover effect (another image appears when the mouse is on it). The alignment of button is set to the right. Sequence numbers are 40 and 50.

    In the displayed page, they appear on top of the other. How can I get them to be side by side?

    If I do the buttons, a typical image button, they appear side by side.

    If I put one of the buttons to left alignment, while the button all the way across the page to the left.

    What I need to adjust so that the 2 buttons are side by side, at the bottom of the region, on the right side?

    Thank you
    Maggie

    Maggie,

    It may be a problem with the template that you created. Throw an example on apex.oracle.com. Provide identifying information as well as the workspace name and we will have a glance.

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen
    http://sourceforge.NET/projects/plrecur

  • help on the use of dynamic action to update the items in a table (more precisely, the radio button) based on the collection

    Hi everyone, I posted this question in the past and made huge strides with the help of Denes Kubicek: https://apex.oracle.com/pls/apex/f?p=31517:294:115851992029365: based on my previous question posted: https://forums.oracle.com/forums/thread.jspa?threadID=2537494

    I'm fighting with a single element in my tabular presentation.  There is a radio button.  The choices all seem correctly, but the value is not saved in the collection (and therefore not recorded in the table).  All the other elements in the form of tables to record properly.

    Here's what I have for the query.   This is element c024 (which maps to;) ("F03'), which is defined as a radio based on an existing LOV LOV.

    Currently I have:

    2 items on the page:

    P110_ID

    P110_VALUE

    Dynamic action called COLUMN of CHANGE:

    event: CHANGE

    selection type: jQUERY Selector

    jQuery:

    Select jQuery = input [name = "f03"], select [name "f08"], select [name = "f09"], input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], select [name = "f40"], input [name = "f21"], input [name = 'f22'], input [name = "f23"], input [name = 'f50']

    scope of the event: Dynamics

    real action #1: set the P110_ID javascript expression this.triggeringElement.id

    real action #2: set the P110_VALUE javascript expression this.triggeringElement.value

    action 3: run pl/sql code

    declare
      v_member number;
      v_seq number;
    begin 
      v_member := TO_NUMBER (SUBSTR (:p110_id, 2, 2));
      select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
      safis_collections.update_column(v_seq,
                                    v_member,
                                    :p110_value);
    
    
    

    refreshment area true creation #4: LANDINGS_COLLECTION

    the tabular presentation is based on the query:

    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0','  -- Select Favorite --  ','f08_'||seq_id,'') Disposition,
    apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear,
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars,
    decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished,
    decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY,
    decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT,
    c024 hms_flag,
    decode(c050,'Y',apex_item.checkbox(21,'Y','id="f21_'||seq_id||'" style="background-color:#FBEC5D; " onClick="alterYes('||seq_id||');" onKeyPress="alterYes('||seq_id||');"',c021),'N','N/A') FinsAttached,
    decode(c050,'Y',apex_item.checkbox(22,'N','id="f22_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterNo('||seq_id||');" onKeyPress="alterNo('||seq_id||');"',c022),'N','N/A') FinsNotAttached,
    decode(c050,'Y',apex_item.checkbox(23,'U','id="f23_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterUnk('||seq_id||');" onKeyPress="alterUnk('||seq_id||');"',c023),'N','N/A') FinsUnknown,
    decode(c050,'Y',apex_item.textarea(28,c028,3,null,null,'f28_'||seq_id,''),'N','N/A') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale,
    decode(c020,'Y',
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;"',null,null,null,'f40_'||seq_id,''),
    'N','N/A') HMS_AREA_CODE,
    c020,c050,
    decode(c020,'Y',
    apex_item.text(41,TO_NUMBER(c041),5,null,null,'f41_'||seq_id,''),
    'N','N/A') Sale_Price
    from apex_collections
     where collection_name = 'SPECIES_COLLECTION' order by seq_id
    
    
    
    
    
    

    I noticed the following:

    When I change the column C011 (price) the following values are defined in dynamic action:

    P110_ID = f11_1

    P110_VALUE is everything that I change the price.

    When I change the column C024 (hms_flag), the following values are defined:

    P110_ID = f03_0001

    P110_VALUE = change everything what I hms_flag to.

    the region is updated in my dynamic action, and change of hms_flag does not take.  I tested the SQL query that generates the value of v_SEQ in the dynamic action.   Both a change of price and HMS_FLAG, it seems valid

    Select ltrim (substr(:p110_ID,5,4),'0 ') in the double v_seq;

    If f11_1, v_seq: = 1

    If f03_0001, v_seq: = 1

    Thank you!

    solved.  sort of.

    domain c024 references f03.

    dynamic ACtion, step 4 calculated v_member as a substring of P110_ID... and in all other areas, the column and the field (fxx) displayed the same value... otherwise c024.

    I'm not exactly sure how solve it, but see the problem.

  • How to add the custom button on the action bar

    Hey guyzz how create a button custom action so bar showTabsOnActionBar: false as the search bar in the Blackberry world button and play in the music player

    It would be the signature action, available since 10.3
    https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__actionbarplacement.html#ENU...

  • Move the focus of the custom button

    Hello

    My button did to paint two differrent bitmap:

    Paint (Graphics g)

    {

    g.isDrawingStyleSet (Graphics.DRAWSTYLE_FOCUS)? FOCUS: NORMAL;

    g.drawBitmap (0, 0, getPreferredWidth(), getPreferredHeight(), _bitmaps [index], 0, 0);

    ...

    }

    How do I call it g.setDrawingStyleSet (Graphics.DRAWSTYLE_FOCUS, false) to navigationUnclick (State of the int, int hour). To make the button unfocus after a click.

    removeFocus() didn't work?

    clues will be a great help.

    This will work as long as the button is focused. You can add a custom boolean to change the drawing, or move the focus to another field.

  • Not the custom control based on existing controls

    For my UI I need a directional Panel control 8, somewhat like a D - Pad or a digital arcade stick, as seen on the left side here:

    Or this:

    His output would ideally be an Enum, identifying the direction in which it is proposed:

    0: Center

    1: left

    2: right

    3: to the top

    4: bottom

    5: left upwards

    6: left down

    7: top right

    8: right down

    The order doesn't really matter. In fact, nor the data type as long as it works. He must also be able to respond to the keys on the keyboard for example the arrow keys.

    The problem I have is that I can't do this control. To the best of my knowledge, a control like this does not natively exist in LabVIEW. So I looked in the creation of custom controls, but all the resources that I found only show you how to take a control existing (for example a cursor) and change its appearance. Absolutely nothing about creating controls that behave differently than the default, the controls made NEITHER.

    I spent enough time looking for resources that I have to ask: is it still possible?

    Edit: I would reluctantly with a cluster with 4 Boolean controls, each corresponding to one of left, right, up, down. But then, can I do their people in charge of the graphics from the other? If not, can I at least prevent press left and right at the same time?

    Do some research on the XControls - they allow you to create custom with custom behaviors controls: http://www.ni.com/tutorial/3198/en/

  • Create a custom buttons in Windows Explorer to the default directory

    In the Windows XP Explorer: is there a way to create a custom button so that no matter where you are in a different drive, directory and subdirectory... all you have to do is click on the custom button and return to your default directory?  If this is not the case, is a custom button another way to do it.  Currently, I click on the [Back] button or use the button [Back] drop down to return to the default value.  Ok, but not really okay because it takes a click and return to the default value.

    Thank you

    Steven

    Hi Steven Geib,

    Unfortunately, the service back to the default directory is not present in Windows, and as it is a design, there is nothing we can do from our end.

    If you want to suggest changes in the design here is the link you can make reference to: return products.

    http://mymfe.Microsoft.com/Windows%207/feedback.aspx?formid=195

    As an alternative, you can use the tree view in Windows Explorer instead of back to the desired location in windows Explorer.

    Thank you, and in what concerns:
    I. Suuresh Kumar - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Custom button problem (is the closure of a popup and it shouldn't)

    Hello.

    In my ADF, 11.1.1.7.0 JDeveloper application, I have a popup with its dialogue and its default buttons "Ok" and "Cancel".

    In addition to this, I put a custom command button. I want it, when it is selected, go to the server, do things in a method and return to the open popup.

    The fact is that, when you click the custom button, the method is executed (action or actionListener, I tested both), but popup closes immediately.

    So, I have to reopen the popup to see the actions performed.

    How can I avoid the popup gets closed when clicking this custom button?

    Thanks in advance.

    AutoCancel = disabled on the popup property set. It will not close the popup.

    Thank you

  • Development/unfocus field custom button problem

    Hi all

    I have something weird happens.  I have a custom button field that swaps the images based on a focused state or blur.  I have been using this field custom for awhile now, and I have never had any problems.  Imagine the following provision:

    ______________    ________________________

    | Custom button |    | BasicEditField |

    ------------------------    ------------------------------------------

    When my screen is launched, the focus is on the custom button.  If I move the trackball in a downward movement, the focus is taken the custom button, and its background image changes adequately to what has been defined in the untargeted State.  The BasicEditField then has the focus.  This is the correct behavior.

    If, however, I move the trackball in a movement to the right to the BasicEditField, then the BasicEditField will indeed get the focus, however the custom button field always displays its "highlight" picture  Using print statements, I was able to determine that when I move in a movement to the right with the trackball, the custom field button loses the focus and then gets the focus back to back, that's why it shows the highlighted image.

    Additional info:  This isn't an issue on touch devices, and custom button Manager is a TableLayoutManager.

    Any ideas why this might be happening?  Here's the code to my custom button field:

    public class BitmapButtonField extends Field {
        private String text = "";
        private Bitmap bitmap;
        private Bitmap bitmapHighlight;
        private Bitmap b;
        private boolean highlighted;
    
        public BitmapButtonField(String image, String imageHighlight, long style) {
    
            super(style | Field.FOCUSABLE);
    
            this.bitmap = Bitmap.getBitmapResource(image);
            this.bitmapHighlight = Bitmap.getBitmapResource(imageHighlight);
    
            b = bitmap;
    
        }
    
        public BitmapButtonField(String text, String image, String imageHighlight,
                long style) {
    
            super(style | Field.FOCUSABLE);
    
            this.text = text;
            this.bitmap = Bitmap.getBitmapResource(image);
            this.bitmapHighlight = Bitmap.getBitmapResource(imageHighlight);
    
            b = bitmap;
    
        }
    
        protected void drawFocus(Graphics graphics, boolean on) {
            // Do nothing
        }
    
        public int getPreferredHeight() {
            return bitmap.getHeight();
        }
    
        public int getPreferredWidth() {
            return bitmap.getWidth();
        }
    
        protected void layout(int width, int height) {
            setExtent(getPreferredWidth(), getPreferredHeight());
        }
    
        protected boolean navigationClick(int status, int time) {
            fieldChangeNotify(1);
            return true;
        }
    
        protected void onFocus(int direction) {
            b = bitmapHighlight;
            invalidate();
            System.out.println("FOCUSED");
    
        }
    
        protected void onUnfocus() {
            b = bitmap;
            invalidate();
            System.out.println("UNFOCUSED");
        }
    
        protected void paint(Graphics graphics) {
    
            int topTextPadding = (b.getHeight() - getFont().getHeight()) / 2;
            int sideTextPadding = (b.getWidth() - getFont().getAdvance(text)) / 2;
    
            graphics.drawBitmap(0, 0, getWidth(), getHeight(), b, 0, 0);
            graphics.setColor(Color.WHITE);
            if (text.length() > 0) {
                graphics.drawText(text, sideTextPadding, topTextPadding,
                        Graphics.ELLIPSIS, b.getWidth());
            }
        }
    }
    

    Have you looked at navigationMovement in the TableLayoutManager?  I confess that I rewrote it because it handles no left and right as I wanted.  Perhaps, you might be able to do the same thing.

  • Have several scripts for a custom button

    Can I run different scripts when you click on the same custom button based on the selection in a menu object drop down? The selection in the drop-down list determines what script runs.

    For example: If the drop-down list selection is 'A' - sustom button executes A script

    If the drop-down list Selectionin is 'B' - the same custom button runs only script B.

    Note: Each script contains a small number of cases

    How do I script that?

    You must use an if... else statement.

    If (list == 'A') {}

    do things;

    }

    ElseIf (drop-down list == 'B') {}

    do other things;

    }

    ElseIf (etc.) {}

    do more things;

    }

    And you can nest if statements inside the other if statements.

  • Manage the menu buttons

    I am writing a flex 2 that will require a user to interact with a graphical interface. This GUI will show the various buttons based on what the user selects in the same container. I tried initially hide and show buttons based on the visibility attribute, but if two buttons occupy the same space that neither display.

    There must be a better method, my only thought was States. Any suggestions?

    Thank you

    Matt

    SujitG thanks for the reply. Your idea is what I needed. After using only not States yet, I was a bit intimidated to dig into a whole new area for a simple application. Thanks again,

  • Problem with fieldChanged() and custom button field

    Hello

    I created a custom button class by extending LabelField.  I chose LabelField over field because the LabelField contains desirable properties that are already being implemented.  The only problem I'm having has to do with the change listener.  It seems to 'steal' the event click on other areas in my application.

    For example, when I click on the custom button, a popupscreen with a listfield opens. When I click on an item in the listfield, then the fieldChanged() of custom button is called again...

    Can you see anything wrong with my code?

    package com.rantnetwork.fields;
    
    import com.rantnetwork.app.Constants;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.decor.BackgroundFactory;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class CustomButtonField extends LabelField {
    
        private boolean highlighted = false;
    
        public CustomButtonField(String text, long style) {
            super(text, style | Field.FOCUSABLE | LabelField.ELLIPSIS);
    
            setPadding(10, 0, 10, 5);
    
            setFont(Font.getDefault().derive(Font.BOLD,
                    Constants.DEFAULT_FONT_SIZE, Ui.UNITS_pt));
    
            setBackground(BackgroundFactory.createLinearGradientBackground(
                    0x163d7c, 0x163d7c, 0x03162d, 0x03162d));
            setBorder(BorderFactory
                    .createBevelBorder(new XYEdges(1, 1, 1, 1), new XYEdges(
                            Color.BLACK, Color.BLACK, Color.BLACK, Color.BLACK),
                            new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK,
                                    Color.BLACK)));
    
        }
    
        public int getPreferredWidth() {
            return Display.getWidth() / 3;
        }
    
        protected void paint(Graphics graphics) {
            graphics.setColor(Color.WHITE);
            super.paint(graphics);
        }
    
        protected void drawFocus(Graphics graphics, boolean on) {
            // Do nothing
        }
    
        protected boolean navigationClick(int status, int time) {
            fieldChangeNotify(1);
            return true;
        }
    
        protected void onFocus(int direction) {
            if (!highlighted) {
                setBackground(BackgroundFactory.createLinearGradientBackground(
                        0x4bb7df, 0x4bb7df, 0x1b96da, 0x1b96da));
                setBorder(BorderFactory.createBevelBorder(new XYEdges(1, 1, 1, 1),
                        new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK,
                                Color.BLACK), new XYEdges(Color.BLACK, Color.BLACK,
                                Color.BLACK, Color.BLACK)));
            }
        }
    
        protected void onUnfocus() {
            if (!highlighted) {
                setBackground(BackgroundFactory.createLinearGradientBackground(
                        0x163d7c, 0x163d7c, 0x03162d, 0x03162d));
                setBorder(BorderFactory.createBevelBorder(new XYEdges(1, 1, 1, 1),
                        new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK,
                                Color.BLACK), new XYEdges(Color.BLACK, Color.BLACK,
                                Color.BLACK, Color.BLACK)));
            }
        }
    
        public void showHighlighted(boolean focus) {
            if (focus) {
                highlighted = true;
                setBackground(BackgroundFactory.createLinearGradientBackground(
                        0x4bb7df, 0x4bb7df, 0x1b96da, 0x1b96da));
                setBorder(BorderFactory.createBevelBorder(new XYEdges(1, 1, 1, 1),
                        new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK,
                                Color.BLACK), new XYEdges(Color.BLACK, Color.BLACK,
                                Color.BLACK, Color.BLACK)));
            } else {
                highlighted = false;
                setBackground(BackgroundFactory.createLinearGradientBackground(
                        0x163d7c, 0x163d7c, 0x03162d, 0x03162d));
                setBorder(BorderFactory.createBevelBorder(new XYEdges(1, 1, 1, 1),
                        new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK,
                                Color.BLACK), new XYEdges(Color.BLACK, Color.BLACK,
                                Color.BLACK, Color.BLACK)));
            }
            invalidate();
        }
    
        public boolean isHighlighted() {
            return highlighted;
        }
    
    }
    

    behrk2 wrote:

    Now, I'm not sure why customButton.setText (calling) would trigger the fieldChanged().  Can anyone think of a reason why he can do?

    Thank you!

    Can you think of a reason why we can't do that? The field has changed, after all! Of course, the context (second argument to fieldChanged) will be PROGRAMMATIC in this case, that might be a pretty good indication for you. But not invoke fieldChanged at all would be wrong.

    This is why I don't like the idea of extending LabelField and not just the field for your custom badges - you have much less control over his behavior. If you want an example showing how to create abstract off-screen buttons, take a look at BaseButtonField and his descendants in managers, fields and advanced buttons.

Maybe you are looking for

  • Isloud not remove political money no official apple help.

    my not help apple icloud problem my iphone all locked place idi password tot gustomer not idi not apple password without help me all the unlocked iphone paid service.no send pay no. wait 1 year without problm of RP.

  • Google site search keeps all loading on all sites that use it. However, the same sites load with IE.

    Google site search just keep loading forever on all sites that use it. But IE works fine on the same sites. I'm using FF 11, but it has also been a problem in previous versions. Win7/64 with the latest updates on a computer laptop xps Dell 15z. CORE

  • Palm Treo 850 text timestamp update for sprint

    Hello! I have a Palm Treo Pro 850 running WM 6.1 has been used for several years now and love it. It has recently crashed and I had to do a full memory cleaning. Well, it has been returned to factory settings and now I'm reloading software that is no

  • HP Pavilion all-in-one Windows 7 64 Pro 20

    I demoted only 3 of them Windows 8 for windows 7 pro and just have two drivers that are missing are usb controller and Sm bus controller. Is the hardware for the sm id PCI\VEN_1022 & DEV_780B & SUBSYS_2AFD103C & REV_3APCI\VEN_1022 & DEV_780B & SUBSYS

  • Get the container element

    I created a container that contains numbers and strings of elements. I would like to pass the one element to a vi. But I don't know how to extract the element respectively. Is there a way to get the items in the container one by one? Something like: