Problem with custom VerticalFieldManager, custom list field Call Back

I created a custom vertical field Manager and a custom list field. It works very well in JDE 6.0.But when I build the same code in JDE 4.5 it throws the error because the setExtent Sub protected method (int width, int jeight) that I used in my code is final in JDE 4.5.

so I changed my sublayout custom implemented code in vertical field Manager method. Again, this works very well in JDE 6.0.When I have to generate in JDE 4.5 is not to throw any errors.but when I run my code

the list field does not have focus.

I added a text field and a list custom field to the Vertical Field Manager text field focus but custom list field does not receive the focus. And the confusing part is when I click on the arrow to the getSelectedIndex from the scope of the list is changing and when I print listfield is active or not is the wrong impression.

What is bad code works fine in jde 6.0 but not in jde 4.5, please let me know what I need to do something.

Me as the ListField focus, but is not in fact poster it seems.  Have you made a

. getLeafFieldWithFocus()

to see if indeed he has the focus?

I think we will have to see the ListField code for help.

Tags: BlackBerry Developers

Similar Questions

  • view the json data in the custom list field

    Hi, I did analysis json and I created the custom list field. Now, I want to display only the data analyzed in my custom list field. I'll post my analyzed data from json and here is the code for my custom list field
    data analyzed.
    I have THREE channels of json and I want to show content tittle and date in the list filed. I'll post the screenshot of my list.

    JSONArray jsnarry = new JSONArray(responce);
                System.out.println("\n--length----- "+jsnarry.length());
                //System.out.println("....................................................=");
                for (int i = 0; i < jsnarry.length(); i++){
    
                    JSONArray inerarray = jsnarry.getJSONArray(i);
                        //System.out.println("\n-inerarray-values----- "+inerarray.getString(i1));
                        String TITTLE = inerarray.getString(1);
                        String CONTENT = inerarray.getString(2);
                        String DATE = inerarray.getString(3);
                                                           System.out.println("TITTLE= "+TITTLE);
                        System.out.println("CONTENT= "+CONTENT);
                        System.out.println("DATE= "+DATE);
    
    }
    

    output

    [0.0] --length----- 2
    [0.0]
    [0.0] -innerarray-length----- 6
    
    [0.0] TITTLE= BJP State President Sanjay Tandon's visit to Amita Shukla's Home
    [0.0] CONTENT=  BJP President Chandigarh Sanjay Tandon at Amita Shukla's Home
    [0.0] DATE= 2013-01-04
    [0.0] ................................................
    [0.0] TITTLE= Sanjay Tandon at mahasamadhi of Satya Shri Sai baba.
    [0.0] CONTENT= BJP Chandigarh President, Sanjay Tandon mahasmadhi of Sri Satya Sai Baba.(Andhra Pradesh)
    [0.0] DATE= 2013-01-13
    

    and my custom list field

           super(NO_VERTICAL_SCROLL);
    
             String TITTLE="TITTLE";
             String CONTENT = "CONTENT";
             String DATE = "DATE";
    
             v.addElement(new ListRander(listThumb, TITTLE, CONTENT,DATE, navBar));
    
             myListView = new CustomListField(v){
    
                 protected boolean navigationClick(int status, int time) {
                     //Dialog.alert(" time in milisec :" + time);
                     return true;
                 }
             };
    

    CustomListField.java

    public class CustomListField extends ListField implements ListFieldCallback {
    
        private Vector _listData;
        private int _MAX_ROW_HEIGHT = 100;
    
        public CustomListField (Vector data) {
    
            _listData = data;
            setSize(_listData.size());
            setSearchable(true);
            setCallback(this);
            setRowHeight(_MAX_ROW_HEIGHT);
    
        }
    
        public int moveFocus (int amount, int status, int time) {
    
            this.invalidate(this.getSelectedIndex());
            return super.moveFocus(amount, status, time);
    
        }
    
        public void onFocus (int direction) {
    
            super.onFocus(direction);
    
        }
    
        protected void onUnFocus () {
    
            this.invalidate(this.getSelectedIndex());
    
        }
    
        public void refresh () {
    
            this.getManager().invalidate();
    
        }
    
        public void drawListRow (ListField listField, Graphics graphics, int index, int y, int w) {
    
            ListRander listRander = (ListRander)_listData.elementAt(index);
            graphics.setGlobalAlpha(255);
            graphics.setFont(Font.getDefault().getFontFamily().getFont(Font.PLAIN, 24));
            final int margin =5;
    
            final Bitmap thumb= listRander.getListThumb();
            final String listHeading = listRander.getListTitle();
            final String listDesc= listRander.getListDesc();
            final String listDesc2= listRander.getListDesc2();
            final Bitmap nevBar = listRander.getNavBar();
    
            //list border
            graphics.setColor(Color.BLACK);
            graphics.drawRect(0, y, w, _MAX_ROW_HEIGHT);
    
            graphics.drawBitmap(margin, y+margin+10, thumb.getWidth(), thumb.getHeight(), thumb, 0, 0);
    
            graphics.drawText(listHeading, 3*margin+thumb.getWidth(), y+margin);
            graphics.setColor(Color.BLACK);
    
            graphics.drawText(listDesc, 3*margin+thumb.getWidth(), y+ margin+30);
            graphics.drawText(listDesc2, 3*margin+thumb.getWidth(), y+ margin+60);
    
        }
    
        public Object get(ListField listField, int index) {
    
            String rowString = (String) _listData.elementAt(index);
            return rowString;
    
        }
    
        public int indexOfList (ListField listField, String prefix, int start) {
    
            for (Enumeration e = _listData.elements(); e.hasMoreElements(); ) {
    
                String rowString = (String) e.nextElement();
                if (rowString.startsWith(prefix)) {
    
                    return _listData.indexOf(rowString);
    
                }
    
            }
    
            return 0;
    
        }
    
        public int getPreferredWidth(ListField listField) {
    
            return 3 * listField.getRowHeight();
    
        }
    
    }
    

    Listrander.Java

    public class ListRander {}

    private bitmap listThumb = null;
    incognito bar Bitmap = null;
    private String listTitle = null;
    private String listDesc = null;
    private String listDesc2 = null;

    public ListRander (Bitmap listThumb, String listTitle, String listDesc, String listDesc2, Bitmap navBar) {}
    this.listDesc = listDesc;
    this.listDesc2 = listDesc2;
    this.listThumb = listThumb;
    this.listTitle = listTitle;
    this.navBar = bar navigation;
    }
    public getListThumb() {Bitmap image
    Return listThumb;
    }
    {} public void setListThumb (listThumb Bitmap)
    this.listThumb = listThumb;
    }
    public getNavBar() {Bitmap image
    return the navigation bar;
    }
    {} public void setNavBar (navigation bar of the Bitmap)
    this.navBar = bar navigation;
    }
    public String getListTitle() {}
    Return listTitle;
    }
    {} public void setListTitle (String listTitle)
    this.listTitle = listTitle;
    }
    public String getListDesc() {}
    Return listDesc;
    }
    {} public void setListDesc (String listDesc)
    this.listDesc = listDesc;
    }
    public String getListDesc2() {}
    Return listDesc2;
    }
    public void setListDesc2 (String listDesc2) {}
    this.listDesc2 = listDesc2;
    }
    }

    You seem to have two problems here and are confusing them.  You must break the problem into two parts

    (1) extract the data from the entry and create the objects you want to display

    2) display in a list, a set of objects.

    Let's get the sorted first premiera.

    I will suggest what to do here, but in practice, you might actually think about this yourself as part of the design phase of your application.  You should do this, not me, because then you will have all the information available.  At the present time, I have just what you said, which is not much.  So maybe what I'm telling you is not correct for your application.  Only you can decide that.  And be blunt here, you should have decided this before you start coding.  Do you want you could lead down the wrong path.  You must think of your application as a home - as the architect must design all the rooms, and how they will be built, before you start building the House.  You do not, then we are building the rooms on the fly.  Who knows if they will be fit at home?

    In this case, I think you need to create an object that represents each of the elements in the internal array of new data.  call this object

    NewsItem

    This object will have attributes, such as its title, content, date, the linked image and so on, each of whom have will get and set methods.  While you treat each inner element fetch you the associated entry and update the object.

    When you have finished the inner loop of processing, you now have a complete

    NewsItem

    Object, so you will add it to a collection, an array of NewsItem objects, call this _newsItems.  You will create it at the beginning - you know how many entries it takes because it is the number of entries in your outdoor table.

    So before you start to deal with JSON, create your table and the 'index' value of 0.

    Once you have created your Newsitem, add this in the table to the position 'index' and increment "index".

    And once you have analyzed all the JSON, you will have a complete picture.  This is part 1 finished!

    And note in your drawListRow, you are given a clue - that is the index in your tables in _newsItems.  So you can easily find which entry to view and display it correctly.  But it is part 2 and is a separate issue.

  • Re: problem with menu drop-down lists.

    Hello everyone,

    I am facing a problem with the drop-down lists in my application, I have 4 drop-down lists one under the other. The main problem follows here, the second list is being covered by the first list when the first list fell down. How to get rid of it, any suggestions please,

    Thank you and happy new year.

    You must listen to the update and then change the order of objects.  Seems odd that RIM does not perform this themselves because it is a problem long been known.  A few other controls have similar problems.

    Community Library:

    import flash.events.Event;
        import flash.events.FocusEvent;
    
        import qnx.ui.listClasses.DropDown;
    
        public class DropDown extends qnx.ui.listClasses.DropDown
        {
            public var dataField : String = 'data';
            public var defaultSelection : * = '';
    
            /////////////////////////////////////////////////////////////////////////
            public function DropDown()
            {
                super();
                this.addEventListener(FocusEvent.FOCUS_IN, HasFocus );
            }
    
            ///////////////////////////////////////////////////////////////////////////
            private function HasFocus( event : Event ) : void
            {
                this.parent.setChildIndex( this, this.parent.numChildren-1 );
            }
    
            ////////////////////////////////////////////////////////////////////
            public function set selection( value : * ) : void
            {
                var entry   : Object;
                var counter : int = 0;
                for each( entry in this.dataProvider.data )
                {
                    if( entry[ this.dataField ] == value )
                    {
                        this.selectedIndex = counter;
                        break;
                    }
                    counter++;
                }
            }
    
            //////////////////////////////////////////////////////////////////////
            public function get selection() : *
            {
                return this.selectedItem ? this.selectedItem[ this.dataField ] : this.defaultSelection;
            }
        }
    
  • Problem with custom "CTRL + &lt;" shortcut in Photoshop CS6 or CC (Windows 7).

    Hello

    I have a problem with a shortcut customized in Photoshop CS6 and CC. It works fine in Photoshop CS5.

    I put the "CTRL + <" shortcut to the command "flatten image." I use it for years, so it's difficult to change my habits of . I saved the shortcuts and everything works fine until I have restart Photoshop.

    After restarting Photoshop, the shortcut is automatically set on "CTRL + &"! I edited the file ".kys" where my custom shortcut is saved, and the file is good:


    < control type = "static" id = "1141" name = "Flatten image" >


    < shortcut > Ctrl + & lt; < / shortcut >

    I maybe it might be a problem with the custom workspace that also store shortcuts but this file is fine too.

    I don't really know how this is possible because the files are correct... Photoshop saves this values elsewhere?

    I would really appreciate help with this.

    Thank you

    G.

    Hi people,

    Or is that what I should say hi?

    Looks like you found a big bug.  The thing is, this bug is also bit strange...

    First of all, CNTRL +.< does="" indeed="" change="" to="" cntrl+&="" on="" both="" win="" and="" mac. ="" that="" said,="" this="" is="" only="" an="" issue="" for="" french,="" german,="" italian,="" spanish,="" and="" danish,="" not="" english,="" czech,="" or="" romanian,="" as="" this="" key="" is="" \="" and="" cntrl+\="" is="" assigned="" to="" select="" layer="" mask="" in="" channel="" panel="" in="" the="" later="" languages. ="" i've="" tried="" in="" for="" a="" number="" of="" different="" commands="" and="" the="" results="" are="" the="">

    In addition, however, once I met the problem ONCE on Mac, the app correctly prevents its use again.  Odd.  Windows has no these "belts" for this problem.

    I went ahead and logged a bug.  To be honest, I don't expect that the key (to the left of the W on the French keyboard, to the left of the Z for English) to work as a hotkey in general as it is very dependent on language, but its transformation of< to="" &="" is="" pretty="">

    Thank you

    David

  • Problems with custom events

    I'm trying to figure out this problem I'm having with custom events, I've read all the documents and tutorials that I can find, and this bit still makes no sense.

    I have the following configuration:

    LoginForm: custom component (which is created as a popup via the PopupManager)
    ApplicationHeader: custom component (which is added to the MXML application)
    application: creates the LoginForm as a popup via the PopupManager, has ApplicationHeader defined in the MXML.

    When a user logs in the LoginForm dispatches an event customized, there are two defined listeners:

    1. in the application:

    private void showLoginForm(): void {}
    var loginForm:LoginForm = LoginForm (PopUpManager.createPopUp (this, LoginForm, true));
    loginForm.addEventListener (UserLoggedInEvent.USERLOGGEDINEVENT, userLoggedInHandler);
    }

    2. in the component custom of ApplicationHeader :

    private function init (): void {}
    parent.addEventListener (UserLoggedInEvent.USERLOGGEDINEVENT, userLoggedInHandler);
    }

    When the event is dispatched the request listener picks it up as expected, however the listener inside the custom component sees ever-even if the event is set to bubble.

    The only way I managed to get this working is to do the following in the application:

    private void userLoggedInHandler (event:UserLoggedInEvent.USERLOGGEDINEVENT): void {}
    // .. the event handling logic
    the return of the event
    dispatchEvent (event);
    }

    This makes no sense at all, what happens if I didn't want the application to handle the event itself. There is a line in the documentation of the event
    who says "You can only save a listener of events with an object if that object dispatches the event." who could explain it, but it is still absurd.

    Any help/tips/examples would be most useful as I am pulling my hair out here.

    Never mind, I just read this post ( http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid = 1257178 & highlight_key = y & keyword1 = custom % 20components) and I was pointed in the right direction - I had to add the metadata for the event to the application.

  • Some problems with custom skin

    Hello

    I have created custom skin and I have some problems with it.

    (* 1) as you can see on [this image | http://www.zilp.pl/z/test01/Members/jakubp/Folder.2007-06-22.2113643678/File.2008-09-29.7372305410] item of Navigation within the Navigation pane command appears quite a color must be white, but gets by default the font for application (dark green) color. *
    My definition of the skin is the following:

    / * NAVIGATION PANE * /.
    AF | navigationPane - tabs:tab - start {(background-image: url('/skins/zilprcskin/img/tab-start.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab - end {(background-image: url('/skins/zilprcskin/img/tab-end.gif'); width: 4px ;}}
    AF | navigationPane content tabs::tab {(background-image: url('/skins/zilprcskin/img/tab-content.gif') ;}}
    AF | navigationPane - tabs:tab:hover af | navigationPane - tabs:tab - start {(background-image: url('/skins/zilprcskin/img/tab-start.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab:hover af | navigationPane - tabs:tab - end {(background-image: url('/skins/zilprcskin/img/tab-end.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab:hover af | navigationPane content tabs::tab {(background-image: url('/skins/zilprcskin/img/tab-content.gif') ;}}

    AF | navigationPane - tabs:tab: selected af | navigationPane - tabs:tab - start {(background-image: url('/skins/zilprcskin/img/tab-start-selected.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab: selected af | navigationPane - tabs:tab - end {(background-image: url('/skins/zilprcskin/img/tab-end-selected.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab: selected af | navigationPane content tabs::tab {(background-image: url('/skins/zilprcskin/img/tab-content-selected.gif') ;}}
    AF | navigationPane - tabs:tab: selected: hover af | navigationPane - tabs:tab - start {(background-image: url('/skins/zilprcskin/img/tab-start-selected.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab: selected: hover af | navigationPane - tabs:tab - end {(background-image: url('/skins/zilprcskin/img/tab-end-selected.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab: selected: hover af | navigationPane content tabs::tab {(background-image: url('/skins/zilprcskin/img/tab-content-selected.gif') ;}}
    AF | navigationPane - tabs:tab {margin right: 2px ;}}
    AF | navigationPane - tabs:tab - link {color: #ffffff; make-weight: bold ;}}
    AF | navigationPane - tabs:tab - link: hover {color: Red; make-weight: bold ;}}
    AF | navigationPane - tabs:tab: selected af | navigationPane - tabs:tab - link {color: #ffffff}

    (* 2) as you can see on [this image | http://www.zilp.pl/z/test01/Members/jakubp/Folder.2007-06-22.2113643678/File.2008-09-29.7372305410] menu scroll icons displayed twice: my and by default (rich). My definition of the skin is the following: *.

    / * MENU * /.
    AF | menu {- tr - visible elements: 2 ;}}
    AF | menu: depressed.
    AF | menu: stressed {(background-image:url('/skins/zilprcskin/img/menuHighlighted.gif') ;}}
    AF | : bar menu-point-text {color: White; make-weight: bold ;}}
    AF | menu: highlight: bar-point-text {color: #CEFFF1 ;}}
    AF | menu: bar-point-open-icon {(content:url('/skins/zilprcskin/img/small-arrow-down.gif'); margin-left: 2px ;}}
    AF | menu: go to the top icon {(content:url('/skins/zilprcskin/img/small-arrow-up.gif') ;}}
    AF | menu: go to the bottom-icon {(content:url('/skins/zilprcskin/img/small-arrow-down.gif') ;}}
    AF | : submenu of the menu-open-icon {(content:url('/skins/zilprcskin/img/small-arrow-right.gif') ;}}
    AF:menu:bar - point-text {make-weight: bold ;}}
    AF | commandMenuItem:menu - point-icon-style,
    AF | : submenu of the menu-icon-style {background-color: #a1caca; border: none ;}}
    AF | commandMenuItem: highlight: menu - item text.
    AF | commandMenuItem: highlight: menu-point-Accelerator,.
    AF | commandMenuItem: highlight: menu-point-open-indicator.
    AF | menu: highlight: submenu text,.
    AF | menu: highlight: submenu-Accelerator,.
    AF | menu: highlight: submenu Open indicator {background-color: #a1caca; border: none ;}}

    (* 3) as you can see on [this image | http://www.zilp.pl/z/test01/Members/jakubp/Folder.2007-06-22.2113643678/File.2008-10-01.6059969354] I also have a problem with default Panel box. Header font color should be white and ago strange empty space in header: *.

    / * DEFAULT CORE BOX PANEL * /.
    . AFPanelBoxHeaderCoreDefault:alias {color: #ffffff ;}}
    AF | panelBox::content:core:default {border-color: #149492 ;}}
    AF | panelBox:header - departure: kernel: default {(background-image: url('/skins/zilprcskin/img/tab-start.gif') ;}}
    AF | panelBox:header - Centre: kernel: default {(background-image: url('/skins/zilprcskin/img/tab-content.gif') ;}}
    AF | panelBox:header - end: core: default {(background-image: url('/skins/zilprcskin/img/tab-end.gif') ;}}

    Kuba

    Hello Kuba,

    I have a quick look in your message. For the moment I can solve one of your questions. The text of the panelBox header that you use skin:

     af|panelBox::header-element { color:White; } 
    

    Is on the white space, the 'skins/zilprcskin/img/tab-start.gif' image enough width? I use the same selectors (af | panelBox:header - departure: kernel: default af | panelBox:header - Centre: core: by default, af | panelBox:header - end: core: by default) and it works for me (but I'm not using an image, the only background color). Probably you need to change the width of header-early, restricting the scope and the lengthening of the Center header.

    As Simon said, Firebug is very useful to do this :)

    JVN

  • Problem with custom jobs 11.1.1.5

    Hello experts!

    I have a problem with the import of my tasks to the new env. I had previously worked with 11.1.1.3, and my fine imported tasks. But I have problems in 11.1.1.5.
    My steps:
    (1) modify the weblogic.properties and add dirs I need.
    (2) OIM_ORACLE_HOME game
    (3) place my jars in SheduleTask dir and dir location metadata xml files
    (4) run weblogicImportmetadata.sh

    What's wrong? Or should I change smth in xml?

    Thank you.

    Excuse me, import ofc.

    Published by: VarlamAnd on February 9, 2012 02:56

    Published by: VarlamAnd on February 9, 2012 02:59

    You must change the namespace here in 11.1.1.5


    **
    Published by: Zaba Nayan on February 9, 2012 03:30

    Published by: Zaba Nayan on February 9, 2012 03:31

  • Problem with the mobile Flex list control

    Hello world.

    I have a problem with the list control in Flex mobile.  I need create list in "Flex mobile" and I need that list items must have following structure. a single image, text and then another picture. How do I do this?

    Concerning

    Include a component with a custom converter.

    See the documentation for Flex: http://help.adobe.com/en_US/flex/using/WS03d33b8076db57b9-23c04461124bbeca597-8000.html for more details.

  • Problem with Xperia Z3 - no noise on call

    Hi guys,.

    I am facing a problem with my Z3 Xperia since the last update Android 5.1.1. I don't know if I'm the only one who faced such a problem - hope not.

    When I receive a call or call someone, I hear the voice of the other person, but they can not hear mine until I turn my speakerphone and then turn it off (just once and for a second, then everything's fine). I did a repair for my software, but the problem persists. Any solution please? This does not happen always but OFTEN. And it's very disturbing, especially when I make or receive a call from businesses for job interviews.

    Thank you

    This has been discussed before on the forums, most likely an application uses your microphone at the same time of the call. Applications for cause this are:

    -Ok Google detection from any screen (go to your App drawer-> settings of Google-> Seach now & -> voice-> 'OK Google' detection-> disable "from any screen")

    -Registration of the apps (disable or uninstall if you) calls.

  • problem with index on a list of variants

    Hi, im working with a variant property list and index property int for the passage of the current 5 days and back temperature seems to work, but it has some problems, first of all, instead of the current temperature, I got 0 and then when I get to the day 4 me sends to the current day, and when I am right now (jsonweather.temp in the list) I spend twice for him , I increase the index on the shot upwards and taper sliding down like that

    Page {
    
    property variant list
    property int index: 0
    
    list: [ jsonweather.temp,
            jsonweather.tempMax1,
            jsonweather.tempMax2,
            jsonweather.tempMax3,
            jsonweather.tempMax4,
            jsonweather.tempMax5 ]
    
    function setIndex(_index){
            index = _index
        }
    function temperatureChanges(index){
            if(_WeatherNow.useFarenheit == true){
                weatherDataTemperature.text = Math.round((list[index])*1.8+32);
           } else{
                  weatherDataTemperature.text = Math.round(list[index]);
                }
        }
    
    Container {
            id:swipeContainer
    
            property int swipeThreshold: 100
            property double swipeStartPosX: -1
            property double swipeStartPosY: -1
            property double swipeLastKnownPosX: -1
            property double swipeLastKnownPosY: -1
            property bool swipeStart: false
            property bool swipeMove: false
    
    attachedObjects: [
    PositionSource {
                id: positionSource
                //! Desired interval between updates in milliseconds
                updateInterval: 10000
                //! When position changed, update the location strings
                onPositionChanged: {
                    currentCoord = positionSource.position.coordinate;
                    latitude = Math.round(currentCoord.latitude*1000)/1000;
                    longitude = Math.round(currentCoord.longitude*1000)/1000;
                    console.debug("Latitude: " + latitude, "Longitude: " + longitude);
                    positionSource.stop();
                    // start loading weather data for location
                    jsonweather.getWeatherdata(latitude, longitude);
                    jsonweather.onGetReply(loading.stop())
                }
            },
            ExternalIP {
                id : jsonweather
                onNameChanged: {
                    weatherDataCity.text = name;
                }
                onDescriptionChanged: {
                    weatherDataCondition.text = list2[index2];
                }
                onHumidityChanged: {
    
                }
                onTempChanged: {
                if(_WeatherNow.useFarenheit == true){
                weatherDataTemperature.text = Math.round((list[index])*1.8+32);
                } else{
                weatherDataTemperature.text = Math.round(list[index]);
                }
    }
            ]
            function processSwipe() {
                var horz = swipeContainer.swipeLastKnownPosX - swipeContainer.swipeStartPosX;
                var vert = swipeContainer.swipeLastKnownPosY - swipeContainer.swipeStartPosY;
    
                if (Math.abs(vert) > swipeThreshold) {
                    if (vert > 0) {
    
                        if(index > 0) temperatureChanges(index--)
                        else index = list.length - 1
    
                    }
                    else if (vert < 0) {
                        //swipe up
                        if (index < list.length - 1) temperatureChanges(index++)
                        else index = 0
                }
    }
                if (Math.abs(horz) > Math.abs(vert)) {
                // Moving horizontally: refresh information
                if (Math.abs(horz) > swipeThreshold) {
                    if (horz < 0) {
    
                             loading.start()
                             positionSource.start()
                             temperatureChanges(index)
    
                    } else if (horz > 0) {
                        temperatureChanges(index)
                    }
    
    }
            }
            }
            onTouch: {
                if (event.isDown()) {
                    swipeContainer.swipeStartPosX = event.windowX;
                    swipeContainer.swipeStartPosY = event.windowY;
                    swipeContainer.swipeStart = true;
                } else if (event.isMove() && swipeStart) {
                    swipeContainer.swipeMove = true;
                    swipeContainer.swipeLastKnownPosX = event.windowX;
                    swipeContainer.swipeLastKnownPosY = event.windowY;
                } else if ((event.isUp() || event.isCancel()) && swipeContainer.swipeMove) {
                    swipeContainer.swipeStart = false;
                    swipeContainer.swipeMove = false;
                    processSwipe();
                }
            }
    onCreationCompleted: {setIndex(0)}
    }
    

    This code seems very strange to me...

    if(index > 0) temperatureChanges(index--)
    else index = list.length - 1
    

    If it should not change anything...

    if(index > 0) index--
    else index = list.length - 1
    temperatureChanges(index)
    

    Ditto for increase the index in the code a little later, the.

    I do not say that it is something to do with your problem, that there should be further analysis, but this code seemed to me odd right now.

  • Save before exit Skillbuilders (version 3.0.1 for APEX 4.0): problem with some element of list in the form Manager

    Hello

    I have a problem with the plugin save before exit that I downloaded from Skillbuilders. As I use Oracle APEX version 4.0.2 and Oracle 10 g r2 database; so I downloaded one that says "Save before release (version 3.0.1 for APEX 4.0)" skillbuilders and follow-up of their documentation to import the plugin and use it.

    My problem is that even if I do not make any changes to data in the form and go to another tab. the alert message always appears, and by the way, I have an element of list manager on my form and it gets highlighted. So, even if I make the changes or do not change; still, the alert message is displayed and highlights the element of list manager. I think maybe the problem is to have a crèche in the form list item. I have reproduced the same problem in my personal workspace. Here are the details.

    http://Apex.Oracle.com/pls/Apex/f?p=55129

    Details of the workspace

    Name of the workspace: raghu_workspace

    username: orton607

    password: orton123

    App # 55129

    Page: 2 - has the element of list manager.

    Page 3 - works fine without the element of list manager

    Please help with possible suggestions.

    Thank you

    Orton

    Orton,

    I have connected to the workspace you and added a replacement JS file that corrects this error.

    If please, give it a whirl and let me know if you find other problems with it.

    It is to the 3.0.2 version of the plugin and I do not know if this even fix will work for your local Apex version earlier.

    When you are ready to go to the APEX 4.0.2 Please contact me directly for assistance. In the meantime, I'll work on the creation of a patch for this kind of new downloads of the plugin will contain this change.

    Greg

    [email protected]

  • Problems with "security access control list '.

    Hello

    My system is configured as follows
    UCM - 11 GR 1 material - 11.1.1.4.0 (Build: 7.3.0.180)
    -Database 11 GR 2
    OracleTextSearch - engine is used
    RoleEntityACL - component is enabled
    -Parts of my config.cfg
    SearchIndexerEngineName=OracleTextSearch
    IndexerDatabaseProviderName=SystemDatabase
    UseEntitySecurity=true
    I want to create lists of access control for users, groups, and roles. I followed the the next page http://download.oracle.com/docs/cd/E17904_01/ documentatoindoc.1111/e10792/c03_security.htm#CDDBCIDA
    Everything seems to work fine at first, because I'm able to add users, groups, and roles to the ACL of the document. The problem is that adding a user, group or role of the ACL of a document does not affect the rights of a user a of the document.

    Example:
    -Wear a read access to "public"-SecurityGroup
    -UserB is to check in a "document1" to the SecurityGroup 'public' and adds UserA to the ACL of "document1" give UserA 'read' and 'write' access to "document1".
    -The result is that UserA doesn't have to 'write' access to "document1", well it is in the ACL (same problem with groups and roles)

    In this scenario shouldn't UserA have "write" access "document1" or I have a bad understanding of access control lists?

    Thanks in advance
    Brahim

    You heard wrong...

    Permissions through ACL are subject to the same rules of intersection between the permissions granted by the intermediary of roles or accounts.

    If you want write access to a document, you must have at least write access to the security group of the document, account and have RW permissions in the ACL.

    In other words work ACL on top existing accounts/groups and roles that they do not replace the existing UCM permissions. You can restrict the permissions by an ACL but not grant permissions that the user has not already set for the account or the security group.

    And by are the ACL way ugly generally impassable and unmanageable so if you have to use them all to be very careful!

    hope tha helps
    Tim

  • Problems with masks after the sequence first SpeedGrade back (CC)

    Hello

    I'm color ranking a clip in SpeedGrade CC using the new direct link function. For calibration of the colors I used masks and also the different layers. Once I'm done, I sent my sequence back to first Pro CC.

    I see, first shows me exactly the color correction, I did in SpeedGrade, except for one thing:
    The places where I used the masks in SpeedGrade to illuminate their for example a little until now are filled with lines pixeled...
    I thought it's just a problem with the preview, so I exported it. Slept pixeled lines.

    Once again: in SpeedGrade is all fine, but when I send the return sequence to the first there are those pixels.

    It's really irritating because one day before it worked fine with no problems and I was virtually the same as now.

    Please help me if you can! Thank you!

    Ok.

    The GPU acceleration is turned on?  Have you tried to turn it off?  You have a card AMD or nVidia?

  • Problems with the movement of the front and back layers

    Hey everybody!

    I am very new to Flash, very very new to actionscript and basically, I started programming in general 2 days ago, and I have a problem with the layers in a project. I tried learning through books, but especially thanks to youtube tutorials, but I'm stuck here.

    Here is the .swf file: http://dl.dropbox.com/u/14319641/Flashprojekte/Variuscard%20Headertest.swf

    And here is the original .fla file: http://dl.dropbox.com/u/14319641/Flashprojekte/Variuscard%20Headertest.fla

    Two problems:

    1. I want maps to fly BEHIND the Logo, but in front of the shadow - so that it seems that the logo is original and the rest (maps and shadow) is in the back. I have 3 layers (Logo, Action, shadow), but no matter how to move around it do not go to the back...

    2. I would like to have a second fountain Let's say right left... can I just copy and paste the code? Seems similar is not...

    Can someone help me on this one? Pleeeeez ?

    Mike

    To create an empty movieclip you just select Insert-> new symbol and select movieclip and click OK.  Simply exit the editing for this movieclip mode by selecting Edit-> Edit the Document.  You now have a new empty movieclip in your library.

    With the desired layer selected, drag an instance of the movieclip in the library in the upper left corner of the stage and then give it an instance name of "mc" in the properties panel.

    I have no CS5.5, so I don't know if what I described in selecting is changed in the new design.

  • focus with custom text field problem

    Hello

    I am new to BB dev., trying to write a small program with two CustomTextFields, but faceing the problem, then try to verify that CustomTextField is selected (the focus).

    CustomTextField (NumericTextField)

    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.component.EditField;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.system.Characters;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Font;
    
    public class NumericTextField extends Manager
    {
    
        private final static int DEFAULT_LEFT_MARGIN = 10;
        private final static int DEFAULT_RIGHT_MARGIN = 10;
        private final static int DEFAULT_TOP_MARGIN = 5;
        private final static int DEFAULT_BOTTOM_MARGIN = 5;
    
        private final static int DEFAULT_LEFT_PADDING = 10;
        private final static int DEFAULT_RIGHT_PADDING = 10;
        private final static int DEFAULT_TOP_PADDING = 5;
        private final static int DEFAULT_BOTTOM_PADDING = 5;
    
        private int topMargin = DEFAULT_TOP_MARGIN;
        private int bottomMargin = DEFAULT_BOTTOM_MARGIN;
        private int leftMargin = DEFAULT_LEFT_MARGIN;
        private int rightMargin = DEFAULT_RIGHT_MARGIN;
    
        private int topPadding = DEFAULT_TOP_PADDING;
        private int bottomPadding = DEFAULT_BOTTOM_PADDING;
        private int leftPadding = DEFAULT_LEFT_PADDING;
        private int rightPadding = DEFAULT_RIGHT_PADDING;
    
        private int totalHorizontalEmptySpace = leftMargin + leftPadding + rightPadding + rightMargin;
        private int totalVerticalEmptySpace = topMargin + topPadding + bottomPadding + bottomMargin;
    
        private int minHeight = getFont().getHeight() + totalVerticalEmptySpace;
        private int width = Display.getWidth();
        private int height = minHeight;
    
        private EditField editField;
    
        public NumericTextField()
        {
            super(0);
    
            editField = new EditField(EditField.FILTER_REAL_NUMERIC);
            add(editField);
        }    
    
        protected void sublayout(int width, int height)
        {
            Field field = getField(0);
            layoutChild(field, this.width - totalHorizontalEmptySpace, this.height - totalVerticalEmptySpace);
            setPositionChild(field, leftMargin+leftPadding, topMargin+topPadding);
            setExtent(this.width, this.height);
        }
    
        public void setTopMargin(int topMargin)
        {
            this.topMargin = topMargin;
        }
    
        public void setBottomMargin(int bottomMargin)
        {
            this.bottomMargin = bottomMargin;
        }    
    
        protected void paint(Graphics graphics)
        {
            graphics.drawRoundRect(leftMargin, topMargin, width - (leftMargin+rightMargin), height - (topMargin+bottomMargin), 5, 5);
    
            boolean longText = false;
            EditField ef = (EditField)getField(0);
            String entireText = ef.getText();
    
            String textToDraw = "";
            Font font = getFont();
            int availableWidth = width - totalHorizontalEmptySpace;
            if (font.getAdvance(entireText) <= availableWidth)
            {
                textToDraw = entireText;
            }
            else
            {
                int endIndex = entireText.length();
                for (int beginIndex = 1; beginIndex < endIndex; beginIndex++)
                {
                    textToDraw = entireText.substring(beginIndex);
                    if (font.getAdvance(textToDraw) <= availableWidth)
                    {
                        longText = true;
                        break;
                    }
                }
            }
    
            if (longText == true)
            {
                ef.setText(textToDraw);
                super.paint(graphics);
                ef.setText(entireText);
            }
            else
            {
                super.paint(graphics);
            }
        }
    
        public int getPreferredWidth()
        {
            return width;
        }
    
        public int getPreferredHeight()
        {
            return height;
        }
    
        protected boolean keyChar(char ch, int status, int time)
        {
            if (ch == Characters.ENTER)
            {
                return true;
            }
            else
            {
                return super.keyChar(ch, status, time);
            }
        }
    
        public String getText()
        {
            return ((EditField)getField(0)).getText();
        }
    
        public void setText(final String text)
        {
            ((EditField)getField(0)).setText(text);
        }
    }
    

    and in my screen content trying to check:

    NumericTextField focusImput() {
        NumericTextField focusField;
        if (_fieldFrom.isFocus()) {
            focusField = _fieldtFrom;
        }
        else {
            focusField = _fieldTo;
        }
        return focusField;
    }
    

    but it always returns me _fieldTo...

    NumericTextField definition:

    _fieldFrom = new NumericTextField();
    _fieldFrom.setChangeListener(this);
    manager.add(_fieldFrom);
    
    _fieldTo = new NumericTextField();
    _fieldTo.setChangeListener(this);
    manager.add(_fieldTo);
    

    Maybe someone to guide me how to correctly focus feature?

    Thanks in advance.

    Then you need two slightly customized EditFields - their main customization would be limiting their width, as well as making them focusable/unfocusable. So, something like this should work:

    public class NumericTextField extends EditField {
      // override the constructors used in your code, adding FILTER_REAL_NUMERIC
      // ...
      private int maxWidth = Integer.MAX_VALUE >> 1;
      private boolean focusable = true;
    
      protected void layout(int width, int height) {
        super.layout(Math.min(maxWidth, width), height);
      }
    
      public void setMaxWidth(int width) {
        maxWidth = width;
        updateLayout();
      }
    
      public boolean isFocusable() {
        return (isStyle(FOCUSABLE) & focusable);
      }
    
      public void setFocusable(boolean on) {
        focusable = on;
      }
    }
    

    If you want to place the fields, use setMargin - he is documented in OS 6.0 but works since OS 4.2.

    Use setMaxWidth to, well, set desired maximum width (otherwise EditField tenorman to the top of the entire available width). Use the setFocusable to toggle the field. In addition, you can play with the Visual States for the field you turn, but it's an exersize for another day. First of all make sure that it works and you know how to use it.

Maybe you are looking for