EditField automatic extension to a certain height without wordsearch

CustomEditField wjroke = new CustomEditField(){

 public int getPreferredHeight(){
   int h = Font.getDefault().getHeight()* 3;
   //setting the height of edit field as 3 rows
  return h;
 }

 public void layout (int width, int height){

   super.layout (width, height);

   if (getExtent().height < getPreferredHeight()){
       setExtent (width, getPreferredHeight());
   }
 }
};

THA above code autogrows a custom change the field, but I'd like to stop after a specific height (say 20) has been reached. I tried putting this after

else{
  setExtent(width, 20);
}

This kind of work, but when it gets to the height that it hides the words.

I want to increase the editfield stop but at a certain height, without the words hidden due to the height restriction. Any help will do

"I want to increase the editfield stop but at a certain height, without the hidden words.

You mean you want to stop the user entered input when the field has reached a certain size?

I suspect that the number of characters the user can enter will depend on the phone, the language, the case and the font used, therefore will vary from user to use.  For me, this does not sound like a good user experience.

Maybe you want to restrict the place occupies the field on the screen, but allow the user to scroll through their text within this space.  If so, this article should help:

http://supportforums.BlackBerry.com/T5/Java-development/TextBoxField-revisited/Ta-p/548410

Tags: BlackBerry Developers

Similar Questions

  • all-in one want 5540: automatic extension tray

    I just bought the printer ENVY 5540 and wanted to know if automatic extension tray should also retract automatically when I stopped the printer. It extends automatically when I start printing, but I have to manually replace it once I'm done. The State plug it is auto - so I guess it would also retract when I turned off the printer. I hope that someone knows? Thank you.

    Hello

    Thank you for using the HP forum.

    Extension is automatic while the retraction is manual.

    Thank you

  • How can I configure my Internet XP connection so that it will automatically connect to my WiFi (wireless) without asking me the password whenever I connect?

    How can I configure my Internet XP connection so that it will automatically connect to my WiFi (wireless) without asking me the password whenever I connect?

    original title: automatic Wifi connection

    Hello

    By default, Windows XP attempts to connect to networks without wires in the following order:

    1. Available networks that are in the list of network preferred (by order of registration)
    2. Preferred networks in the list proposed (by order of registration)
    3. Other networks according to selected advanced settings

    Check out these articles and check if that helps:

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/wireless_networking_overview.mspx?mfr=true

    To connect to an available wireless network

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/wlan_client_connect.mspx?mfr=true

    To set up automatic wireless network configuration

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/wlan_client_configure.mspx?mfr=true

     

    5 steps: how to set up your network wireless home

    http://www.Microsoft.com/athome/organization/wirelesssetup.aspx

  • I think that 2 albums have been recently removed by the wind. Live Photo Gallery. I do not remove them. Albums are automatically deleted after a certain period of time? Thank you!

    According to me, that all my albums have been recently removed by Windows Live Photo Gallery. I did not remove the myself. Albums are automatically deleted after a certain period of time? Thank you!

    Submit all Live queries on the forum right here:

    Windows Live Solution Center
    http://windowslivehelp.com/

  • TouchSmart 600 height without feet?

    Did someone knows or can measure the height of the touchsmart 600 without the feet? I guess that the spec ~ 17.8 "is with the feet and I would like to mount it under a piece of furniture, but it would be just a little too big.
    Thank you!

    The main unit is 41.5 cm of height without feet.

  • Automatic extension of a data file with the complete file system

    We are working on a database of Oracle10g 10.2.0.4 on HP - UX 11.31 (Itanium |) PA - RISC)

    We would create our database by activating the automatic Extension of our data files
    (defining the maximum size limit or unlimited)

    Our question is:
    What happens to the database in the event of complete file system when one of the data files should be automatically extended?
    The extended data file has become corrupted or the db cease its activity?


    Marco

    No data corruption should occur. If Oracle is trying to develop, OS it will send the message that it is not possible. That's all.

  • A PDF form text field is adjustable to wrap the text and automatically expand the 'line height' without changing the "column width" (as a .xls document)? I can't use the Auto font resizing.

    Any suggestions?

    A text AcroForm field can be configured to wrap the text, but do not resize

    automatically.

    The game, may 7, 2015 23:16, mikej16900439 [email protected]>

  • When there is no wifi, my phone automatically send as a text message without having to turn first iMessage every time me?

    I have an iPhone 5 s. I don't have a data plan but I text messaging plan.  When I try to send a text message wihout wifi, he just keeps trying to send as iMessage.  Must we automatically send as a text without having to turn first iMessage me?  I can't imagine that you would have to keep turning on iMessage and off whenever you do and don't have wifi.  Help, please?

    In theory, as long as you have settings > Messages > Send as SMS enabled, Yes, it should send the message as an SMS when there is no data available. In practice, sometimes it isn't. If you still do not have a data connection, you're usually better just not using iMessage and just going by SMS.

  • At startup, PS CS6 Ex automatically opens a new file menu without being prompted to do so. Huh?

    Whenever PS CS6 Ex is opened, a new file menu automatically opens without being prompted to do so. This happens if I open any type of file in PS or just open PS without a file again. Once the PS is open, it reproduces not when opening multiple files then, just at Startup only. It is not too big of a deal, just a little weird.

    PS just started this little time there so I think it's a setting preferred but can not understand that one.

    I really don't think that there is an answer. PS itself works very well. It's just the new file automatically opens on the launch of the program is weird. I'll keep this open in case someone has a solution.

  • Select all the paragraphs of a certain style without looping

    Did a quick search, so please forgive me if this is a duplicate.

    paragraphs var = app.activeDocument.textFrames.everyItem ().paragraphs.everyItem ();

    Is it possible to points of reference with a certain style applied without a loop in each paragraph?

    I am thinking something like this:

    Var headlines = paragraphs.itemsByAppliedParagraphStyle ("title 1");

    Headlines is an array of the paragraph, all which have the "Heading 1" paragraph style applied to them

    Thanks for any help you can provide.

    Just use findGrep or findText like this

    app.findGrepPreferences = null
    app.findGrepPreferences.appliedParagraphStyle = "Headline 1"
    myHeadlineParagraphs = app.activeDocument.findGrep()
    

    Trevor

  • JDeveloper debug: start the automatic extension debugging session

    Hello

    I'm trying to start a debugging session from a remote process in the extension. (The idea is that the user simply clicks on a button provided by the extension and remote debugging is started without any other parameters necessary user.)
    From the description of the API, the javax.ide.debug.Debugger class seems to be very promising.

    Unfortunately, Debugger.getClientConnector (Context) always throws an UnsupportedOperationException. I have no idea what to do, so my current project supports the operation.

    Can anyone help? No results for a search on the net or this forum.

    If this is not the right place to ask this question, can someone point me in the right direction?

    Thanks, Steffen

    Steffen,

    Now JDeveloper has no support for debugging of the JSR 198 through the javax.ide.debug.Debugger class. I filed a request for improvement for this, and we will implement this in a future release.

    Keimpe Bronkhorst
    Team JDev IDE

  • recover and repair windows vista Professional automatically by microsott online help and without any backup on pc

    I want to repair my windows pc automatically, how can I do?

    How to get Vista recovery Media and/or to use the Vista recovery Partition on your computer.

    There is no Vista free download legal available.

    Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.

    Normally, they do this for a cost of $ small.

    In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    You can also make recovery disk/s for the recovery Partition in case of a system Crash or hard drive failure.

    They will tell you how to do this.

    Every computer manufacturer has their way of doing recovery disk/s.

    Or borrow a good Microsoft Vista DVD (not Dell, HP, etc).
    A good Vista DVD contains all versions of Vista.
    The product key determines which version of Vista is installed.

    There are 2 disks of Vista: one for 32-bit operating system, and one for 64-bit operating system.

    If install a cleaning is required with a good DVD of Vista (not HP, Dell recovery disks):

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu

    http://support.Microsoft.com/default.aspx/KB/918884

    MS advice on the conduct of clean install.

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    Save all data, because it will be lost during a clean installation.

    See you soon.

    Mick Murphy - Microsoft partner

  • Is it possible on adobe first to slice a clip for a certain period without changing its speed?

    I want to set the duration of the video to 5 frames without changing its speed

    In the Clip speed/duration dialog box application, click on the channel icon to unlock the speed with the duration, and then enter the desired time.

    MtD

  • Hide an extension plugin on certain properties? How can we achieve this?

    I want to hide some portlets on the section view summary based on a particular property that comes from the PropertyProvider adapter class. Can you please help with that?

    I refer to the following example to hide the summary portlet for the rack section, but his does not work. Please tell where I was wrong.

    < id = "com.vmware.samples.rack.RackSummaryView extension" >

    < extendedPoint > com.vmware.samples.rack.summarySectionViews < / extendedPoint >

    < object >

    < name > Test Portlet < / name >

    < componentClass className="com.vmware.samples.chassisrackui.views.RackSummaryView"/ >

    < / object >

    < metadata >

    < objectType > samples: Rack < / Type_objet >

    conditions of <>

    < com.vmware.data.query.PropertyConstraint >

    chassis of < propertyName > < / propertyName >

    equal to < comparator > < / comparator >

    < comparableValue >

    false < string > < / String >

    < / comparableValue >

    < /com.vmware.data.query.PropertyConstraint >

    < / conditions >

    < / metadata >

    < / extension >

    Filtering, hide/show a vSphere web plugin extension of the customer on the basis of a custom property for
    objects of vSphere

    Since week last two that I'm trying to figure out how can we filter the extensions point in vsphere client of web based on custom property coming from java services

    I'm tempted after the thing to hide/filter summary portlet in vsphere client of web for the data store object type.

    This, to register the property in the property provider adapter class. This property value will be back based on the substitution of this class which is getProperties() that return the result set.

    Service of Java code:

    package com.test.adapters;

    import java.util.ArrayList;

    import java.util.List;

    import java.util.Random;

    import com.vmware.vim25.InvalidPropertyFaultMsg;

    import com.vmware.vim25.RuntimeFaultFaultMsg;

    com.vmware.vise.data.query import. *;

    / public class TestPropertyAdpater implements PropertyProviderAdapter {}

    private static final String CUSTOMPROPERTY = "customProperty".

    public TestPropertyAdpater (DataServiceExtensionRegistry extensionRegistry) {}

    VmTypeInfo TypeInfo = new TypeInfo();

    vmTypeInfo.type = "Datastore";

    vmTypeInfo.properties = new String() {CUSTOMPROPERTY};

    TypeInfo [] providerTypes = new [] {vmTypeInfo} TypeInfo.

    extensionRegistry.registerDataAdapter (this, providerTypes);

    }

    @Override

    public ResultSet getProperties (PropertyRequestSpec propertyRequest) {}

    ResultSet result = new ResultSet();

    try {}

    List resultItems = new ArrayList ();

    If (propertyRequest.properties! = null)

    (& propertyRequest.properties.length > 0) {}

    String [] listPropertyNames = propertyRequest.properties [0] .propertyNames;

    for (String propertyName: listPropertyNames) {}

    for (object dsRef: propertyRequest.objects) {}

    ResultItem resultItem = getDsProperties (dsRef,

    propertyName);

    If (resultItem! = null) {}

    resultItems.add (resultItem);

    }

    }

    }

    } else

    result. Items = resultItems.toArray (new [] {} ResultItem);

    } catch (Exception e) {}

    Passing the exception the result allows display an error

    notification

    in the user interface of the client.

    result. Error = e;

    }

    return the result;

    }

    Private ResultItem getDsProperties (Object dsRef, String propertyName)

    throws InvalidPropertyFaultMsg, {RuntimeFaultFaultMsg}

    ResultItem ri = new ResultItem();

    ri.resourceObject = dsRef;

    PropertyValue pvCustomProperty = new PropertyValue();

    pvCustomProperty.resourceObject = dsRef;

    pvCustomProperty.propertyName = CUSTOMPROPERTY;

    pvCustomProperty.value = new Random () .nextBoolean (); / / Here taken random Boolean value which will take in plugin.xml. The real return, you can filter the extension point using the property

    LAUGHED. Properties = new [] {pvCustomProperty} PropertyValue;

    return of ri;

    }

    }

    Flex code plugin.xml:


    For the filter, hide/show summary portlet on basis of the property that comes from the dam (Data Access Manager library) in our code of the property is "customProperty" which we recorded to retrieve dynamic Boolean value since appearing above the java code.

    This property, we put in the tag of propertyName in plugin.xml.

    vsphere.core.datastore.summarySectionViews

    Portlet test

    Data store

    customProperty

    IS EQUAL TO

    true

    AND

    This works perfectly for the version of the web client 5.1 and 5.5.

    Thank you laurentsd

  • [CS6] Select the block of text with a certain height and move it to a specific location?

    I have a bunch of labels on page that I need to move. All these labels are the same height (0.125 in.) so what I think is that a script could go on each page and find the article on this basis, select it, and finally, move it to a specific location of XY with a right anchor point. It would be very difficult to do? I think it would be a rather simple script.

    Thanks for any help you can give!

    No problem getting the height of a selected image and looking for images with the same height. Here is a sample script:

    (function(){
    
        function frameHeight (frame) {
            var gb = frame.geometricBounds;
            return (gb[2]-gb[0]).toFixed(3);
        }
    
        function moveFrames (h) {
            var pItems = app.documents[0].pageItems.everyItem().getElements();
            for (var i = pItems.length-1; i >= 0; i--) {
                if (frameHeight (pItems[i]) === h) {
                    pItems[i].move ([0,0]);
                }
            }
        }
    
        if (app.selection.length > 0 && app.selection[0].hasOwnProperty('geometricBounds')) {
            var h = frameHeight (app.selection[0]);
            moveFrames (h);
        }
    
    }());
    

    This move of the elements on the page with the same height as the photo selected to the top left of the page. See the move() command line 12. You can substitute your own coordinates [0,0].

Maybe you are looking for