Matter of style BasicEditField

Hi all

IM using BasicEditField that I need to enter the characters in all CAPITALS, so I used the "BasicEditField.FILTER_UPPERCASE" style, when I did I was able to enter the uppercase characters, but I'm not able to enter the SPACE.  I travel in Virtual_KEY_BOARD in the space key is disabled.

Same BasicEditField.FILTER_UPPERCASE | "BasicEditField.FILTER_DEFAULT" is also down. So how to get there, one guide me.

Thanks in advance

Anil

This give a try.

UppercaseTextFilter uptf = new UppercaseTextFilter() {}
public char convert (character char, int status) {}
If (character == Characters.SPACE) {}
Returns the character;
}
Return super.convert (character, status);
}
public boolean validate (char character) {}
If (character == Characters.SPACE) {}
Returns true;
}
Return super.validate (character);
}
};
BasicEditField bef = new BasicEditField ("upper Test:", null);

I think bef attributes appropriate for you.

Tags: BlackBerry Developers

Similar Questions

  • matter of style selectManyChoice

    Hello

    I am currently using JDeveloper 11.1.1.6 and my client asks that I resize a control selectManyChoice in height.

    I tried to adjust af. selectManyChoice::control (since I noticed that it's the real selector which makes resizing) to 30px, but nothing happened. Then I tried change it Firebug, and still it didn't work. Inside the firebug, that I also tried to add a padding of 20px and only resized my component. However, applying this exact same padding (with! important) in my css file does not modify this component at all.

    I also applied this padding to af. selectManyChoice::dropdown and af | selectManyChoice::content and it worked.

    My question is why when I apply the same style to the FA. selectManyChoice::control it does not work.

    Thank you

    Toma

    Hi Tom,

    Can you please let me know if that's what you're looking to achieve? It seems that the class, you must change the control one.

    snaggy - paste pictures!

    Concerning

  • Matter of style CSS in Dreamweaver

    HI - hope someone can offer some suggestions.  I manage this for my client:

    http://www.gulfspillrestoration.NOAA.gov/

    My client wants to change the cover page, as seen above, it looks like this:

    mock.jpg

    Originally, I created an iframe which worked perfectly.  The iframe is designed in Muse, then iframed page above, but I won't do that now as it seems better to have the actual content on the page instead of an iframe.

    So I've been playing with CSS in DW and the only thing I can't understand is how I would do this bigger box on the right (the one called projects close to home) to be a broader area, as seen in the image above and then get the 2 small boxes below it?  I'm obviously not very well with a style and CSS is what I met as a roadblock.

    Any help is appreciated.  Thank you.

    All you need is something like this-

    ...

    ...

    ...

    and this CSS-

    {#outer_right_column}

    Width: 100%;

    float: right;

    }

    {#bottom_left}

    Width: 50%;

    float: left;

    }

    {#bottom_right}

    Width: 50%;

    float: left;

    }

    This should give you these regions.

  • Matter of style re: color of the drop cap, the rest of the text in black

    Hello... I'm trying to achieve this result by using character paragraph styles / nested:

    1.jpg

    Instead, that's what I mean:

    12-22-2010 10-20-11 PM.jpg

    I have a paragraph with a nested character style style. The paragraph style specifies the point of using a drop cap with 4 lines. The nested character style tells the paragraph to the first three words in a special font and some red CMYK color. But I can't understand how to tell the style also put the drop cap in the same color. Help!

    Thank you.

    the character of the dropcap style there red color value itself?

    PARK style of paragraph for a moment, go to the style of CHARACTERS assigned to the dropcap letter and look at the options. Look at the color of the text and see if it is red or not.

    Does that help?

  • Matter of style table of contents

    I work to convert my book to an ePub.

    So, I created a new style of table of contents to pick the chapter number and title of the chapter on level 1.

    But the new style of table of contents appears only as an option with my OCD open doc. The new style does not appear as an option in the chapter of my book files.

    Is there a way to make the new style of table of contents available when you open an another doc in my book?

    1_toc_dialog.jpg

    Well Yes, simply change the source to the TOC doc. If you have synced before styes, they should all be the same with the exception of the new, but if not, you should take a source that has the defs you want used through the book and sync with first, then resysnch using the table of contents to get the style added to the book.

  • Matter of style re: line style

    Hello

    I wrote a style that makes the first line of a paragraph in small capitals. (It's a line style nested inside a paragraph style). There is also a drop cap. I've applied to text and was happy, except that I did not like what looked like the end of the first line, when the word was a hyphen. So, I went back to the underlying and selected character style WITHOUT BREAKING. I have applied the new style and got some surprising results. See screenshot below. It worked - each front-line IS in small capitals and there are no hyphens in the first line, which is what I want. However, the drop cap has become corrupted in some places. I tried this style with cool text and got the same results. My question is: why this style causes corruption in the alphabet? "corruption," I mean that the text does not flow around the drop cap as expected.  Thank you.

    Example 1a.jpg

    No break means that the text will not break. Never. If there is more text that fits on one line, the text is flowed up to the it finds a line long enough for all of this, which means generally that it disappears, since there is no such line in any block of text. Turn off hyphenation to make paragraph insert a conditional hyphen (command) - before the word you want not hyphen.

  • Matter of style...

    Hi all

    I'm still relatively new to HR. I have Word documents with a fairly clean styles model (used previously with Doc-to-Help); I used the Word doc to generate HR for HTML pages.

    I found that in addition to the styles in the generated CSS files (_ns.css < Filename > and < Filename > .css), there were models in the area of the head of the generated HTML page. For example:
    < style type = "text/css" >
    <!--
    div.whs1 {border: none; border-top: solid #003399 3.0pt; padding: 1.0pt 0 in 0 in 0 in ;}}
    TD.whs2 {border-left: none; border-right: none; border-top: none; border-bottom: none; width: 276.0pt; padding: 0 to 5.4pt 0 to 5.4pt ;}}
    TD.whs3 {border-left: none; border-right: none; border-top: none; border-bottom: none; width: 274.8pt; padding: 0 to 5.4pt 0 to 5.4pt ;}}
    etc.

    From what I can tell, these additional styles add borders and background color of table cell.

    If I add the specificities of these styles in the CSS file, which will work to ensure that HR does not these styles on the fly? The news of TD isn't the problem (even if it is used throughout of the RFSO; it's the backstory for the legends of Note and tip); the DIV is the addition of a style that I don't want... and I don't want to have to manually edit each page with a level 2 heading (which is what corresponds to this DIV!).

    Any suggestions?

    Thanks in advance!

    Kathy

    Kathy,

    By experimenting with the importing Word documents in RH8 (you didn't what HR version you use), I found that any time that I imported a Word document with styles that included borders, HR transformed, who in a div.

    Work on an ongoing project where you need printed as output HTML help? If so, I suggest you author in HR, and then output to the layout of a single source of printed Documentation. In this way, you can specify title without borders styles in your CSS, and then, when you export to Word, you can map Word styles that have borders. RH8 has the mapping improved style feature, but you may be able to do work as you want if you are using an earlier version.

    -Ben

  • BasicEditField and FILTER_EMAIL

    Style BasicEditField.FILTER_EMAIL for EditField and BasicEditField doesn't seem to work as indicated (you can type characters that is not valid for an e-mail address as the space).

    Other style filters work very well as EditField.FILTER_UPPERCASE or EditField.FILTER_NUMERIC.

    I solved my problem by using EmailAddressEditField instead of EditField or BasicEditField.

    However, my question is:-is this a bug in the documentation of the api RIM or am I missing something?

    Spaces are allowed when using an EmailAddressTextFilter.  Since the JavaDocs:

    This filter accepts all characters except control characters, delimiters, and unwise characters (see RFC 2396). Note, however, it does allow spaces. This is because some corporate email systems use email address in the form "firstname lastname".
    
  • Default fonts to 50 points when you apply a paragraph style

    I ran into this many times.  To update a file, InDesign from a previous version (now using CS5) when I apply a paragraph style, the default font is 50 points no matter the style settings.  Is it possible to avoid this.  Currently, I copy and paste the chart into a new file and have to set the text.  If I copy some old text, it causes the same problem.

    Most of our text is copied and pasted from Microsoft Word (old version and new text changes), however, the text that was already in the document and the new text both do the same thing when a style is applied.

    CS5

    Win 7 Pro 64-bit

    Your styles are based on standard paragraph, or is it an applied character style? If so, check to see if any of them have 50 as the size.

  • Help for VerticalFieldManager?

    Hello

    I'm just trying to add two verticalfieldmanager in a vericalfieldmanager.

    but the optimization of the resources only the first were added to the vfm.the main second does not add to it.

    I don't know why this help happens.pls if someone knows.

    And also the behaviour of optimizing resources and hfm.

    VerticalFieldManager mainManager=new VerticalFieldManager(USE_ALL_WIDTH|USE_ALL_HEIGHT)
            {
                public void paintBackground(Graphics g)
                {
                    g.drawBitmap(0,0,background.getWidth(),background.getHeight(),background,0,0);
                    super.paint(g);
                }
            };
            VerticalFieldManager topmanager=new VerticalFieldManager(USE_ALL_WIDTH|USE_ALL_HEIGHT)
                {
                public void paint(Graphics g)
                {
                    g.drawBitmap(0,0,topbar.getWidth(),topbar.getHeight(),topbar,0,0);
                    super.paint(g);
                }
            };
    
            VerticalFieldManager topmanager1=new VerticalFieldManager(USE_ALL_WIDTH|USE_ALL_HEIGHT)
            {
                public void paint(Graphics g)
                {
                    g.drawBitmap(0,0,topbar.getWidth(),topbar.getHeight(),topbar,0,0);
                    super.paint(g);
                }
            };
    

    Stop using the USE_ALL_HEIGHT - this style is what he says, after your first VFM is laid out there is no place for the second.

    If you just drop the bit style you may still not luck, though - if there is enough fields added to the Senior Manager, for example. If you consider the result screen you have in mind and post your thoughts here, people here might be more accurate.

    I'll give an example, assuming you want the screen divided into two halves - top and bottom, which might be scrollables. Note that USE_ALL_HEIGHT is very good in this case because you override sublayout():

    VerticalFieldManager topmanager=new VerticalFieldManager(USE_ALL_WIDTH|USE_ALL_HEIGHT|VERTICAL_SCROLL) {
        protected void paintBackground(Graphics g) {
            g.drawBitmap(0,0,
                topbar.getWidth(),topbar.getHeight(),
                topbar,0,0);
        }
        protected void sublayout(int maxWidth, int maxHeight) {
            super.sublayout(maxWidth, maxHeight / 2);
        }
    };
    

    Such a manager will use exactly half the height as him. I added a VERTICAL_SCROLL because you might want to put more fields here that would fit.  Make sure that your mainManager does not that the little (VERTICAL_SCROLL) style and your screen (if you use) is created with the explicit NO_VERTICAL_SCROLL.

    Also note that I replaced the painting with paintBackground - just a matter of style, but a cleaner way to do however.

  • Why declare the abstract modifier? -Lesson 1-3 slide 5

    In Lesson 1-3 slide 5 the abstract modifier is said for the target method.

    Why was this doen? You need the JDK from 8 types of functional interface? What is always optional and strongly discouraged?

    The JLS says:

    http://Java.Sun.com/docs/books/JLS/second_edition/HTML/interfaces.doc.html

    9.1.1.1 abstract interfaces each interface is implicitly abstract. This modifier is obsolete and should not be used in new programs.

    And

    9.4 abstract method declarations

    [...]

    For compatibility with older versions of the Java platform, it is allowed but not recommended, as a matter of style, to redundantly specify the modifier abstract for methods declared in interfaces.

    It is permitted, but strongly discouraged as a matter of style, to redundantly specify the public modifier for interface methods.

    The example in the slide is:

    @FunctionalInterface
    public interface Runnable {
        public abstract void run();
    }
    

    It is true that using "public" and "abstract" on the declarations of interface method is no longer the preferred form, I see that the real source code contains these modifiers! The executable is a very old interface. It was introduced before the JDK 1.0 and indeed that these lines has not changed since its first archived before the JDK 1.0 release. I suspect that Simon may have simply copied this statement directly from source code.

  • How to recreate this photo with my own photos using layers?

    IMG_1566.jpg

    Quick steps:

    • Import all the images that you plan to use in your document. (You can start with a background set size if you do not have to worry about that later.) Place all these images together in a single document. (There are at least two ways to do this). One way is to open an image, then use the file > Place incorporated (if you use Photoshop CC) to place the images in the document.
    • Start thinking about how you want to composite the images together. Layers of work in a hierarchy or an "order"; a layer in the layers panel at the top is the most visible, unless the masks are applied. So you will want to probably the perfect sky and landscape at the bottom, while keeping the full swing golfer at the top. This composite data looks like maybe total 6 layers: 5 of the golfer at various stages of his swing, the background 1.
    • To begin, turn off all the layers but the background and the image of swing of the individual golfer that you want to work. What you'll want to do is select the golfer using the selection tools, and while the selection to a mask using the layer > layer mask > reveal Selection (or use the button at the bottom of the layers panel, looks like a rectangle with a circle inside).
    • The main thing is that you are now allowed to non-destructively "hide" or "hide" in any part of the image using the layer mask using tools like the Brush tool. Work of masks by using the grayscale values: black Total means total concealment of the content of this layer. Total white means reveal total content of this layer. Anything between the two as gray translates into varying degrees of opacity.  It goes way beyond the scope of this post without turning it into a novel, but if you want to get more in depth with layer masks: masks of use to hide the Photoshop layers
    • Repeat for the other layers.

    From there on, it's a matter of style. for example, it seems that the sky has a thumbnail of all sorts, perhaps even a transparent gradient that has a layer mask applied so that the part that covers the golfer can be hidden. So many ways to do it.

    If you have any questions, just ask. That's what we're here for.

  • Problems first withdrawal line

    I'm new to Indesign... as likely to become immediately obvious.

    I want to create a withdrawal of first line of each paragraph.

    I go to my paragraph configuration and enter the appropriate amount (. 375).

    My problem is that I can't make universal... I have to go to each paragraph and reset

    I should add that I'm 'making' text files .docx in a new document.

    I tried to place the document, then together as the dash - and I have tried to set the indent, then place the document... or works well.

    I would like to start a new document, type of font set, size, etc. and then "place" of my text and do it according to my every wish and desire.

    I have several chapters to develop and try to dΘfinir a master should be observed by all of the following chapters.

    My introductory paper was easy... just a few paragraphs. But I can't take what I put there and apply it on the next chapter... or the other.

    I am trying to help a friend whose chapters seem to be getting longer and more than we will.

    I must add, I have a manual 'That' and can't seem to find what I want here either; I found a few YouTube videos, but I still have to go paragraph by paragraph.

    I would like to once for the entire solution.

    Is it enough for you to know what I'm looking for? Or am I so inexperienced, I can't even ask a legitimate question.

    I'm lost - but I'm willing to do some work to learn this program.

    1. Make the changes to a single paragraph that you want to have.
    2. Go to window > Styles > paragraph style.
    3. Click the new Style button, name it.
    4. Select all text with the formatting, and click the style name.

    Create for no matter what style of paragraph. Make sure to start with a basic style and any other function. It allows to perform quick changes anywhere in the document.

  • ImageView and the reversal!

    Hello

    I want to manage the role more (by CSS if possible) on the ImageView component (for example change the background color of the ImageView if he doesn't roll over).

    I have try several things without success.

    So, if you have an idea.

    Thanks in advance.

    Kind regards

    Fabrice

    It would be useful to see what you've tried. But here's a sample.

    There is no much you can do with ImageView and CSS beyond image adjustment and no matter what styles are in the node. If you want to set a border or background color, then you need to place the ImageView in some other layout container and set a few styles on that. The contents of my file test.css (below) sets the opacity of the ImageView to 75% to the overview and a border on the StackPane which is the root of my scene (as you can see from the code). The border is framed on the edges, so you can see more easily.

    view image {-fx-image: url (https://duke.kenai.com/wave/Wave.png); }

    picture view: hover {-fx-opacity: 75% ;}}

    .root:hover {-fx-border-color: Red; - fx-border-inserts: 5; - fx-border-width: 3 ;}}

    @Override
    public void start (point primaryStage) bird Exception {}
    ImageView imageView = new ImageView();
    imageView.setFitHeight (500);
    imageView.setFitWidth (300);
    Scene = new scene (new StackPane (imageView));
    scene.getStylesheets().add("/fxtest/test.css");
    primaryStage.setScene (scene);
    primaryStage.show ();
    }

    Oh, another thing. You won't get hover on the transparent areas of the image. So it is better to put the ImageView into a layout container and set the styles you want on the layout container.

  • A loop through hyperlinks and add * at the end of the hyperlink source text?

    Hello

    I'm sure it's very simple, but my javascript is a little rusty and a little short of time, so I was wondering if someone could point me in the right direction?

    I need a script that loops through all the hyperlinks in a document (no matter what styles are or are not applied). Please check the source text to see if it starts with "www" or "http".

    If the source text starts with "www" or "http" then do nothing. OTHERWISE add an * at the end of the text. In other words if there is text in the document as "Click on this link" (and there had a hyperlink applied) it would be changed to "click on this link." If there is text in the document as "www.google.com" (and there had a hyperlink applied), it would remain unchanged. The hyperlinks themselves remain unchanged.

    So I'm not sure what my If/else statement must be?

    Links = app.activeDocument.hyperlinks;

    for (i = 0; i < links.length; i ++)

    {if

    ???

    }

    Thank you very much in advance for your help!

    Angèle

    How stupid. You are absolutely right. The names of hyperlink above, test script must test the hyperlink source texts. In the small sample, I have tested the script on, names of hyperlink and source texts were the same, that's why I had not spotted the questionable logic of the script. This scripts properly tests:

    hlinks = app.documents[0].hyperlinks.everyItem().getElements();
    re = /^(?:http|www)/;
    for (i = hlinks.length-1; i >= 0; i--) {
      if (hlinks[i].source.hasOwnProperty ('sourceText') && !re.test (hlinks[i].source.sourceText.contents)) {
        hlinks[i].source.sourceText.contents += '*';
      }
    }
    

    This would also explain the unexpected behavior of your / ^ j / test. (/ ^ j / tests whether a string starts with 'j' - no need to the * or the parentheses.)

    Peter

Maybe you are looking for