How do layout of research like this

I want available ot to search, I want to display the field edittext with a button in a rowi used Manager horizontal to display that in a row, but did not display correctly please

public final class MyScreen extends MainScreen
{
    HorizontalFieldManager hrm;
    HorizontalFieldManager hrm2;
    ButtonField gobtn;
    EditField editfild;

    public MyScreen()
    {
        // Set the displayed title of the screen
        setTitle("search");
        System.out.println(Display.getWidth());

        hrm = new HorizontalFieldManager(/*Field.FIELD_RIGHT*/){

            protected void sublayout(int maxWidth, int maxHeight) {
                // TODO Auto-generated method stub
                super.sublayout(Display.getWidth()-50,maxHeight);  

            }

        };
        hrm2 = new HorizontalFieldManager(Field.FIELD_RIGHT);

        editfild = new EditField();
        editfild.setBorder( BorderFactory.createSimpleBorder( new XYEdges(2, 2, 2, 2),
                new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK, Color.BLACK), Border.STYLE_SOLID));
        editfild.setBackground(BackgroundFactory.createSolidBackground(Color.WHITE));
        gobtn = new ButtonField("go",ButtonField.CONSUME_CLICK);

        hrm.add(editfild);
        hrm2.add(gobtn);

        this.add(hrm);
        this.add(hrm2);

    }
}

Help me

I think this will help you.

public final class LoadingScreen extends MainScreen implements FieldChangeListener
{
    private EditField editField;
    public LoadingScreen()
    {
        createGUI();
    }

    private void createGUI()
    {
        HorizontalFieldManager searchHFM = new HorizontalFieldManager(Field.FIELD_HCENTER);

        editField = new EditField()
        {
            protected void layout(int maxWidth, int maxHeight)
            {
                super.layout(Display.getWidth()-100,50);
                setExtent(Display.getWidth()-100,50);
            }
        };
        editField.setBorder( BorderFactory.createSimpleBorder( new XYEdges(2, 2, 2, 2),new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK, Color.BLACK), Border.STYLE_SOLID));
        editField.setBackground(BackgroundFactory.createSolidBackground(Color.WHITE));
        ButtonField goButton = new ButtonField("GO",ButtonField.CONSUME_CLICK|ButtonField.FIELD_RIGHT);
        goButton.setChangeListener(this);
        searchHFM.add(editField);
        searchHFM.add(goButton);
        add(searchHFM);
    }

    public void fieldChanged(Field field, int context)
    {

    }
}

Tags: BlackBerry Developers

Similar Questions

  • How to make a screen like this on Blackberry

    Sorry for the title but I don't know how to summarize the issue.

    I need to make a screen like this:

    As you can see, it shows these 'boxes' with elements of user interface inside each of them.

    Each 'case' is placed inside something like some sort of table cells.

    I thought it would be a good idea to represent the 'boxes' as individual screens inside a TableLayoutManager with vertical scrolling, but I don't even know if it's reliable.

    Please someone tell me how to do something like that on the BlackBerry because I have no idea where to start.

    I use JRE BlackBerry 4.5.0

    Thanks in advance!

    I would not use TableLayoutManager for that.  In fact, I would write my own Manager specific to each "Box" that you see and then just add the number of these 'boxes' that I needed.

    But since you are new (and welcome to the forums!), I think that you can get pretty close to what you want by using standard controls.

    You use a screen - and setTitle allows to set the title of the screen.  In your setTitle you would define a LabelField - and before you set, you will specify the size of the font you need.  For font color, you will need to override the paint.  In object, you just set the color of your choice

    .setColor (.)

    and then call the super.paint.

    The tips are:

    (1) setTitle is that at a certain level of the OS, it changes to be white to be black, then you will need to override paintBackground() to set the background on the color you want.

    (2) you must specify thje USE_ALL_WIDTH style for this LabelField.

    This kind of thing (change the color and the background color of a LabelField) is fairly widespread, the forum for more search tips.

    On this screen you will add each box.  Each box will be a VerticalFieldManager - you can use setMargin (...) to space out these as you wish.   Call everyone your 'BoxManager.

    Each VerticalFieldManager you will have been given the title bar.  Title bar is an another LabelField as you added under the title of the screen.  Once more you will crush object and maybe paintBackground() to get the colors you want.  Again use USE_ALL_WIDTH.  But to get the Bitmap image, you must expand the LabelField class and provide a setBitmap for this class.  Then in painting, that you have overridden it to set the color, you will also need to use

    .drawBitmap, to paint the image on the right side.

    This, after the call to super.paint ().

    The footer bar is very similar, but this time you will use the DrawStyle.FIELD_RIGHT for the labelField painted himself on the right.  It is in the constructor.

    Finally the trickiest part, the lines and the button.  Leave this for last...

    The simplest option is to add to your BoxManager and HorizonalFieldManager.  Then add a button and a RichTextField (not a LabelField) to that.  This will give you the button first.  Not what you want, but until you have worked a little bit more, are the best option.  You can us back later to get the button on the right side.

    OK, enough, do this step at a time and ask questions about each control separately that you have problems with.

    Good luck.

    If you want to create your own search BoxManager, see

    http://supportforums.BlackBerry.com/T5/Java-development/how-to-extend-Manager/Ta-p/446749

    and

    http://supportforums.BlackBerry.com/T5/Java-development/create-a-custom-layout-manager-for-a-screen/...

  • How would I do something like this border effect?

    I was wondering how to do this? Anyone know?photo.jpg

    Do the trace form like this

    Rasterize the shape and apply the Gaussian blur

    Make your choice and add a layer mask

  • How can I configure something like this?

    Grid.JPG

    I took this screenshot from InDesign. Several months ago a friend created this grid for me. I want to use it to make fake stamps. However, I notice that some of the points are overlapped in places (you may need to zoom to see this).

    I wonder if someone can tell me how I can set up a grid like this on my own. I tried and not had much luck. I want to be able to put images in each 'cell' (you will see boxes that I put there already). Is there an easy way to do this? Do not look exactly like what did my friend, but I would like something similar. Please, can someone point me in the right direction?

    Thank you!

    ladyinblack1964 wrote:

    However, I do understand the step and repeat part. While your screenshot is out with no gutter between the boxes, mine did. I do not understand orders from offset box.

    My boxes are 1.25 "x 1.75". I want to only six columns in each row. Not sure how many lines I want yet.

    What I am doing wrong? Thanks v. much.

    compensation must be set to the dimensions of the frames, no room between, you do not want any space, if you use 1.25 for the horizontal shift (and the number of copies to 5 or the number of rows to 6, depending on wheter you selected created as a game grid) and the value of vertical to 1.75 and the number to be determined. If you do not select Create as a grid, the vertical offset set to 0 for the first step, then select the entire row, repeat step and repeat, put the horizontal offset to 0 and make the vertical offset to 1.75 times th number of lines, less one, you need in the field copies.

  • How can I make art like this? Any tips?

    I want to make more pictures like this, do you have any advice for me? as brush palette of colors or size... even a tutorial could be great, thank you!ideas.jpg

    minimalist_wallpaper___mary___hai_t_gensou_n_grimg_by_ncoll36-d9tqtee.png

    For this kind of thing, I'd say adobe Illustrator would be better. Lynda.com have many video tutorials online, you can get a free 10-day trial.

  • How to create a form like this?

    I want to create something like this:

    navbar.png

    I have now the idea of creating images from scratch, I hope that you can help me.

    Something like that could be done in Photoshop using tools such as the pen tool. Since it is symmetric, essentially, you would create a half of the shape can duplicate, flip, and merge all as a single form. You would create while all the effects on the shape later as shadow and texture.

    But the pen tool can be difficult for some users to understand. Adobe Illustrator may be your best bet in this case.

  • How to make a site like this on adobe muse? the effect of sliding page...

    Something like this site... http://www.razvangarofeanu.com/#the-g is this possible on muse adobe? Thank you!

    You can design probably the horizontal content, but with that page, you will need to link this anchor specific to another separately created page as as in case you use a single provision for all the contents of the page then you can not keep a different dimension to the same section of the page as a landscape and another section vertical. So it would create the content with content horizontal and vertical content and then link them with anchor points.

    I recommend you to try this out and check.

    Thank you

    Sanjit

  • How can I create something like this... See the link

    Please see an example of a typical newsletter at this link: http://kW.com/OutFront/index.php?issue=may-Jun

    I really want to learn to do it (do the pages turn, have a menu visible in the background, etc...).  And, if possible, I would also like to be able to insert links in the document that take the reader to another location in the document (for example, links on a Table of contents page that brings the reader to a place in the document).

    Where should I start?  I have Adobe 8 Standard.  Can I first create the entire document in PDF format and then transfer on in InDesign to finish once I have the content?  (I just started learning InDesign, if I'm not even too quickly on this issue.)

    I could really use help and advice on that!   I'd even pay a tax of tutoring if someone would be willing to lead me through the steps I need to do!

    If you can help, I would really appreciate it.   Thank you!

    lablovr (at) gmail.com

    Your options are

    (1) you can use a service provider which converts your PDFS into flippage magazine as in your example, most of them are commercial. Usually, you pay some question of costs/published or that there may be some monthly payments so... They place your magazine in their own special server and give you a link to your Web site.

    (2) you can create your flippage magazine out of InDesign CS4 as mentioned Scot. If you do it directly from InDesign, it s very easy to produce, but there is no element of navigation such as zoom, go to the next/previous page etc.. You can do some of these elements of InDesign layout the buttons and links hypertext, but that s of your time.

    You can also view an add-on for InDesign called eDocWorkflow. It automatically brings a user interface to your SWF files after exported them from InDesign CS4: http://www.prepress.fi/eDocBrowser

    West trial to test...

  • rolliing backword window. How to calculate and op like this

    I have date as below
    with abc as (select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 216 ilo_id, to_date('06/01/2009', 'dd/mm/yyyy') i_date from dual union all
                 select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 215 ilo_id, to_date('05/01/2009', 'dd/mm/yyyy') i_date from dual union all
                 select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 214 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
                 select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 213 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
                 select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 212 ilo_id, to_date('03/01/2009', 'dd/mm/yyyy') i_date from dual union all
                 select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 211 ilo_id, to_date('02/01/2009', 'dd/mm/yyyy') i_date from dual)
    select *
    from   abc
    
    
    
    USERID     CLO_ID      C_DATE                       ILO_ID  I_DATE            
    
             1         11 05/01/2009 00:00:00        216 06/01/2009 00:00:00 
             1         11 05/01/2009 00:00:00        215 05/01/2009 00:00:00 
             1         11 05/01/2009 00:00:00        214 04/01/2009 00:00:00 
             1         11 05/01/2009 00:00:00        213 04/01/2009 00:00:00 
             1         11 05/01/2009 00:00:00        212 03/01/2009 00:00:00 
             1         11 05/01/2009 00:00:00        211 02/01/2009 00:00:00 
    
    
    Now i want to calculate rolling backword frequency of each ilo id and output should come like as based Frequency winodw 
    
    e.g. if frequency window is 2 then 
    
    
    USERID   CLO_ID C_DATE                     ILO_ID  I_DATE                        FREQUENCY
             1         11 05/01/2009 00:00:00        216 06/01/2009 00:00:00          2
             1         11 05/01/2009 00:00:00        215 05/01/2009 00:00:00          3
             1         11 05/01/2009 00:00:00        214 04/01/2009 00:00:00          3
             1         11 05/01/2009 00:00:00        213 04/01/2009 00:00:00          2
             1         11 05/01/2009 00:00:00        212 03/01/2009 00:00:00          2
             1         11 05/01/2009 00:00:00        211 02/01/2009 00:00:00          1
    
    1. For each ILO ID, go back number od days given as Frequency window (in our case its 2)
    2. calculate the number of ilo_id in that range
    3. number of ilo_id is the frequency of that ilo_id
    How can I achieve this.

    Published by: Kuldeep2 on September 29, 2010 02:30

    Published by: Kuldeep2 on September 29, 2010 02:33
    with abc as (select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 216 ilo_id, to_date('06/01/2009', 'dd/mm/yyyy') i_date from dual union all
    select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 215 ilo_id, to_date('05/01/2009', 'dd/mm/yyyy') i_date from dual union all
    select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 214 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
    select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 213 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
    select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 212 ilo_id, to_date('03/01/2009', 'dd/mm/yyyy') i_date from dual union all
    select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 211 ilo_id, to_date('02/01/2009', 'dd/mm/yyyy') i_date from dual)
    select abc.*,
           (
           select count(distinct ilo_id)
           from abc x
           where x.i_date between abc.i_date - ( :frequency_window  -  1 ) and abc.i_date
           and  ( (x.i_date=abc.i_date and x.ilo_id<=abc.ilo_id) or (x.i_date
    

    My last try. I changed the condition for counting again (see code).

  • How can I create something like this?

    Hello

    I am fairly new to dream and work to build my Web site.

    I have a portfolio of work that I would be able to sort and display like that...

    David Gauntlett. Portfolio

    Could someone point me to a tutorial or begin to describe how I could achieve.

    Thank you Sarah.

    Hi Sarah,.

    You would not be able to realize exactly what only Muse. You can achieve something similar by using the Panel tabs widget and add each category in a different tab.

  • How to create a model like this in Illustrator?

    Hello

    I know how to create a pattern dotted with samples or brushes, but this model is benden thereafter. I really need to have the same effect folded.

    In the middel, points are perfectly vertically aligned next to each other inside no more...

    Knipsel.PNG

    Do scatter brush on a row of circles

    Apply a curved path

    expand appearance

    apply color

  • How to create a badge like this?

    Hello

    I'm fairly new to photoshop and I am trying to create a badge like the red logo on www.qbn.com (at the top left) with wavy edges. I tried with photoshop for the last 3 hours without success so I decided to come here and ask for help. is it a "tool" that allows me to create this easily?

    Thank you very much for all the advice

    I recommend you to create in Illustrator, but NOT in Photoshop. It is much easier over there, 5 minutes made and exported in all types of files needed.

  • How to pass URL format like this: DD/MM/YYYY HH24:MI:SS?

    Hello

    I have items date format in the format shows: "HH24:MI:SS DD/MM/YYYY '.
    I want to spend in the URL, but the sign ': ' is interpreted as an end of value by the apex;

    For example, if the value of the element is March 21, 2010 10:20:43 'I get this as a result 21 March 2010 10';

    How high spend tiem value in the URL if possible wthout changing the format of the mask?

    Thank you very much for your help!

    Christian.

    A bit of a brute force approach, but this is to consider that it is for all of the specific characters of the Apex (keeps this htf.escape_sc). It is also useful during extraction of text for SQL scripts that may include newlines, quotes etc. etc. Representation of RAW is twice as long ACE as the string of the date of entry, so use with caution... It also helps to hide the URL which helps reduce piracy of URL...

    SQL > select UTL_RAW.cast_to_raw (March 21, 2010 10:20:43 ') of double

    UTL_RAW. CAST_TO_RAW('21/03/201010:20:43')
    --------------------------------------------------------------------------------
    32312F30332F323031302031303A32303A3433
    1 selected line.

    SQL > select UTL_RAW.cast_to_varchar2 ('32312F30332F323031302031303A32303A3433') of double

    UTL_RAW. CAST_TO_VARCHAR2 ('32312F30332F323031302031303A32303A3433')
    --------------------------------------------------------------------------------
    2010-03-21 10:20:43
    1 selected line.

    Published by: maceyah on March 25, 2010 09:38

  • How to pinch the text like this?

    Try to create this efffect of text. I can distort the text, but it is bigger on the ends and pinched to not cook in the middle.  See attachment!Text bend.jpg

    Use the transformation and the string:

  • Can someone help me understand how the code should look like this?

    I keep looking for forums and I can't figure out if I need an instance name, a frame name, convert to symbol, graphics or video clip. All that I want is the images I have to move and stop as this graph on this website. If anyone can help to provide the code, it would be greatly appreciated!

    Best,

    Brett

    http://byluisvenegas.com/zines/ey-magateen/ey-magateen-5/

    this.addEventListener (MouseEvent.MOUSE_OVER, stopF);

    this.addEventListener (MouseEvent.MOUSE_OUT, playF);

    function stopF(e:MouseEvent):void {}

    This.Stop ();

    }

    function playF(e:MouseEvent):void {}

    This.Play ();

    }

Maybe you are looking for

  • All the text displays too large, Ctrl + 0 does not

    Enabled Firefox this afternoon to find all the text made too big by about 30%. Icons in the bookmarks bar and the tabs are too big, as well. If I press on Ctrl + - twice, then it seems normal, but Ctrl + 0 returned any abnormally high. Gmail in parti

  • After loading Windows - crashes BSOD on Portege A200

    Portege A200 Windows XP; Before windows has finished loading a blue screen appears and the machine stops. Prior to that, the machine was intermittenlty off without apparent reason. The last thing I did before this happened has been updated to IE 7. R

  • AirDrop only works one way between iMac and MacBook Air

    Hello Surely I can't be the only one with this problem. I searched online help and followed all of the suggestions, but nothing works. I can AirDrop OF my MacBook Air (OS X Yosemite, mi 2013 construction) to the iMac (OS X El Capitan, end 2013) almos

  • Unable to download Itunes on new HP Win 10 processor

    When you attempt to download Itunes 12.3.1 for Win 7 or newer version of http://www.apple.com/itunes/download/ on new HP Win 10 computer using edge or the Firefox browser, it redirects to a web page showing "Thank you for downloading Itunes" but no d

  • Desperately need help Tech.

    My kids want to play minecraft on my laptop & I get this error msg: Bad video card drivers!----------------------- Minecraft could not start because it did not find an accelerated OpenGL mode.Generally, this can be corrected by updating the video car