Controlling the layout of application objects in MIDP

If I don't want to use the MIDP high level user interface API, can I control the layout and position of application objects in MIDP?
thanks in advance,
Rani

Yes. The low level API's give application developers complete control over the screen real estate allocated to the application. The low level APIs allow the application draw its own graphics and to
respond to event inputs from the device keypad. Devices are required to have a ITU-T keypad, which has buttons for 0-9, *, and #. The low level APIs give the application developer more control
over what the user sees but make the application less portable.
Hope this answers the question,
cheers!!!!
MFALI
~SUN

Similar Messages

  • How can I limit/control the addition of auth. objects to security roles?

    Checking the authorization object S_USER_VAL it seemed that it grants the ability to limit the addition of authorization objects, but I tried using a test ID in sandbox along with a test role, removing the object, creating ranges in order to limit to a certaing type of auth. objects and didn't work. S_USER_AGR will give me access to limit which type of roles I can modify, but I'm looking to restrict the addition of specific security objects to security roles. If anyone knows the answer to this please share! Thanks in advance for your help!!!!
    Edited by: Armando Salas on Nov 29, 2011 7:41 PM

    Hi Armando,
    Try with auth.obj. S_USER_AUT. A suggestion. Search this objects with tcode SU24, for instance, for tcode PFCG and it gives a list with objects.
    I hope this helps you
    Regards
    Eduardo

  • How can I control the layout?

    There are some table and text data.When the page can't contain all table data,They can express in next page.but the following text info also express in next page.Then white space leaves.I want to control the display style,table\text\table\text......,They are compact. there are not any white space page.

    zhaop,
    In the table designer you can set the 'Start' position of the table to 'floating'. The blank space on the page will be filled with text from after the table. The table will start on the top of the next page. Then the remaining text will follow. This can be done with anchored frames for pictures as well.
    Gustaaf

  • How do I control the layout of an inputListOfValus?

    Hi everyone
    First I should mention that I am using JDeveloper Studio Edition Version 11.1.1.0.2.
    My problem is that I have 2 attributes in an af:inputListOfValues which have the names DisplayName and Name. When I press the magnifier I want Name to come before DisplayName in both the search form and the table of results in the popup. I can control how it shows up in the table in the UI hints for the LOV but I don´t know how to control it in the search form. I would appriciate if someone could give me the answer to that.
    Thanks in advance
    S1979

    Did you try reordering Name and DisplayName in the underlying VO?

  • Controlling the preview order of objects.

    hi all.
    im creating a dynamic menu which has submenus.
    when an item (jbutton) on the menu is clicked all of the items which are below are moved down and the submenu appears in that gap..
    my problem is that the submenu buttons are previewed above the top menu items..
    the submenu items have false in the display propery. that changes when the top menu button which moves get to the same height as the sub menu button...
    all i want is the the menu buttons will have a higher zindex value..
    i checked the apis and saw that java.awt.Container has this method: setComponentZOrder(Component comp, int index) but the netbeans ide says that it cant find it....
    anyone has an idea of how can imake it work?
    thanks!

    The method setComponentZOrder available sinse 1.5. So you may use j2se1.5 to have the method.

  • Control the property of an object in main stage from a loaded swf timeline

    please someone help me here, im loosing my mind
    i have a UILoader that loads an image from an xml list when you click its thumbnail ( in its thumbnails mc on mainstage aswell)
    thing is, i have another UILoader on the layer above that loads in a swf ( a slideshow that fades in and out the pictures when they change to the next,
    with all the coding on frame 1, frame 2 only has a stop and some code for when the mouse is idle for 5 secs it goes back to frame 1)
    so when you go to "portraits" it takes you to frame "x" where the slideshow ( loaded external swf ) starts playing automaticly right,
    if i click any thumbnail the slideshow goes to frame 2 ( wich is perfect and the mouse idle thing i wanted works great ) the ONLY THING IS
    after the slideshow runs by default for the first time ( i enter the category portraits )
    and i click any thumbnail ( moving slideshow swf to frame 2 enabling mouse idle event )
    and the mouse is idle ( so it does the event and starts playing the slideshow again ( goes back to frame 1 ) )
    I CANT MAKE THE UILOADER OF THE THUMBS IMAGE TO DISSAPPEAR!!!
    i have tried everything i can think of and everything i have read trying to adapt it with what i know,
    im no guru at this i reeeeally need some help
    THANK YOU  SO VERY MUCH ! 

    and where would i put the remove.simpleScreen ( simpleScreen is the loader i would want to remove )
    would it be on the external swf on frame 1 where the slideshow plays?
    or in the main timeline's category's frame?
    the problem ( that i see ) is that both loaders are on the same frame ( different layers tho )
    so if i put a the remove simplescreen there it wont show me the pictures when i click the thumbs
    or could i make it so that it removes it BECAUSE its playing on frame 1 ?

  • Random application object lost in Portal

    Hi people,
    I'm having a problem with the application object.
    Some times, in a random way, i'm losing the state of the application object between request's.
    This appens when I'm using the BSP application in the SAP Portal.
    Thanks,
    Paulo Ruivo

    Hi,
    the problem is that in the url I pass a parameter that in the bsp page copy to an attribute of the application.
    Then in the controler i try to read this value and it is empty, all the information in application object is lost.
    This appens during one single request.
    I have several Iviews pointing to the same BSP application, the diference between the content that is shown is controled by the parameter passed in the URL.
    Is it possible that while navigating between iviews, the info in the BSP application is mix up. Something like the aplication start (iview open) and then been close (previous iview close)?
    Thanks for the help.
    Paulo Ruivo

  • How to change the layout of a category view

    I don't know how to change the layout of a category. I want to put 3 image's behind each other followed by some text, like a table with 4 columns. Instead of puting then in 4 rows

    larsprevo
    The category 'view' of items/folders uses the default style of the content area it is defined in (shared categories use the default shared style). Edit the default style to change the font/color of the items/folders returned within the category 'view'. Unfortunately, you don't have the ability to control the layout(like folder regions) - they always display in rows.
    Added an enhancement request for a feature that would allow you to control the display of items/folders in a category/perspective: 1828423

  • Controlling SelectManyCheckbox layout in ADF Faces

    Hi,
    The only possibilities for the layout for an ADF faces select many checkbox seem to be "horizontal" or "vertical". How can we control the layout to say - have 10 checkboxes laid out horizontally in two groups of 5 vertically laid out checkboxes ?
    If there is no such attribute to control the layout better, does anyone have any recommendations on how this can be accomplished in any alternative way?
    Thank you

    Hi,
    no, but what about using a scrollbar?
    <af:form inlineStyle="width:400px; height:200px; overflow:auto;">
              <af:selectManyCheckbox label="Departments" layout="vertical">
                <af:forEach items="#{bindings.DepartmentsView1.rangeSet}" var="li">
                  <af:selectItem label="#{li.DepartmentName}"
                                 value="#{li.DepartmentId}"/>
                </af:forEach>
              </af:selectManyCheckbox>
            </af:form>Frank

  • Application Object in Controllers

    Hi to all,
    In MVC based BSP application how to access application class in controller and models?
    I had seen application attributes in controller class.
    Suggest me how to use data binding using example, if there.
    Regards,

    Hi Bhupendra Singh,
    Data: co_application type ref to <Application class name>.
    CREATE OBJECT co_application TYPE <Application class name>.
    Create a page attribute in your view namely...
    vi_application type ref to <Application class name>
    Now it the controller add the lines below for assigning the controller's application class object to the view's application object in the page attribute.
    Data: main_view type ref to if_bsp_page.
    main_view = create_view( view_name = 'exercise.htm' ).
    main_view->set_attribute( name  = 'vi_application'
                               value = co_application ).
    Hope it solves your problem.
    Regards,
    Maheswaran.B

  • Caching whole Application Object[in addition to swf]

    My whole application is written in JSF. I am using SWFobject
    to embed Flex component in a JSF page[which just contains Flex swf
    only]. Now the user can click a button on JSF application and can
    navigate to this JSF page[with Flex application embedded], and he
    can again click a button on the Flex application and move back to
    original JSF application.Now the issue is when the user moves from
    original JSF page to Flex embedded JSF page he looses the old state
    of the Flex application.
    Here is the use case :
    1.) User is on main JSF page and hits button to navigate to
    another JSF page which has Flex application embedded using
    SWFObject.
    2.) on the Flex application He has tree on the left side and
    some interactive images on the right side and the bottom portion of
    the screen has tabs displaying some information corresponding to
    each node.Everytime he clicks on a node on the tree I create a new
    Tab on the bottom portion and display corresponding information
    which gets fetched from the backend.
    3.) Now lets say he clicked on two nodes and current state of
    application is tree is expanded second node is selected and some
    intercative images are displayed on the right side and two tabs are
    created on the bottom of screen with some info.
    4.) Now user decides to go back to original JSF
    application(he hits a button on the present screen to take him back
    to original JSF page).
    5.) Now when the user tries to navigate back to Flex
    application, he looses all the previous state of the Flex
    application.
    So My question is, is there a way that old state of the flex
    application be saved.this different then caching swf, which I am
    already doing, But I do not want the SystemManager to create a new
    instance of application object (because in that case I will loose
    all the components and there previous states), but instead use the
    last saved application instance bypassing all the lifecycle of
    application object and adding the existing application instance to
    the display list directly].
    I want to know whether this is even possible???
    1.) Can I store the application instance somewhere somehow.
    2.) Tell SystemManager to use this applicationInstance rather
    than instantiating a new one.
    If its not possible then what are the alternatives to achieve
    same kind of behavior?

    "vikbar" <[email protected]> wrote in
    message
    news:gb0tug$7je$[email protected]..
    > Hi Amy,
    >
    > Isnt the HistoryManager approach more specific to Flex
    application i.e if
    > user
    > is just navigating with in the flex application? In my
    case the user will
    > navigate between a JSF page which does not have any SWF
    file and the
    > another
    > one which has swf file embedded. Now everytime when the
    suer moves to the
    > flex
    > embedded JSF page from the Non Flex JSF page these are
    the steps which are
    > always going to happen :
    >
    > 1.) System Manager will get initialized and will create
    PreLoader
    > instance.
    > 2.) The preLoader will then try to download the swf
    file. Now since this
    > is
    > the second time the user is coming back to the flex page
    so the broswer
    > would
    > have already cached this swf, so Preloader will skip the
    downloading
    > swf/RSl
    > step and hence you wont see any initialization progress
    bar.
    >
    > 3.) New Application object will get instantiated and
    will go through its
    > whole
    > lifecycle.
    >
    > So, I guess historyManager approach will work only if
    the user stays on
    > the
    > flex application only and navigates with in flex
    application itself(so in
    > that
    > case if the user clicks back then it knows which flex
    component or view to
    > display), but in my case user will completely move away
    from flex page to
    > a
    > JSF page and then will try to come back.
    >
    You'd need to put the right stuff in the url to make it work,
    just like if
    you were calling a page that's expecting GET params. I don't
    really use the
    HistoryManager, so you'll need to either look into this
    yourself or ask
    someone who knows more about it.
    HTH;
    Amy

  • How to control the window size of default message error

    I have a form with many fields. (inputText)
    These fields are marked with tag required="true"
    When the user try to submit the form, the adf faces show a validation window displaying the label of the inputTexts and one message like this "This field are required".
    The problem is that i have an inputText that have a large label and the window is showing with scrollbars and the layout is not good.
    How can i control the layout of this default window ?
    Thanks

    At the moment I don't believe this to be fixable. From (maybe limited) investigation, we've been unable to discover a skin class to fix this.
    CM.

  • Drawing and some layout help for a simple control: thin lines and application start

    I am trying to create a new, simple control. The control should act as a grouping marker much like that found in the Mathematica notebook interface. It is designed to sit to the right of a node and draw a simple bracket. The look of the bracket changes depending on whether the node is logically marked open or closed.
    After looking at some blogs and searching, I tried setting the snapToPixels to true in the container holding the marker control as well as the strokewidth but I am still finding that the bracket line is too thick. I am trying to draw a thin line. Also, I am unable to get the layout to work when the test application is first opened. One of the outer brackets is cut-off. I hardcoded some numbers into the skin just to get something to work.
    Is there a better way to implement this control?
    How can I get the fine line drawn as well as the layout correct at application start?
    package org.notebook;
    import javafx.beans.property.BooleanProperty;
    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.SimpleBooleanProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.scene.control.Control;
    * Provide a simple and thin bracket that changes
    * it appearance based on whether its closed or open.
    public class GroupingMarker extends Control {
      private final static String DEFAULT_STYLE_CLASS = "grouping-marker";
      private BooleanProperty open;
      private IntegerProperty depth;
      public BooleanProperty openProperty() { return open; }
      public IntegerProperty depthProperty() { return depth; }
      public GroupingMarker(boolean open) {
      this();
      setOpen(open);
      public GroupingMarker() {
      open = new SimpleBooleanProperty(true);
      depth = new SimpleIntegerProperty(0);
      getStyleClass().add(DEFAULT_STYLE_CLASS);
      // TODO: Change to use CSS directly
      setSkin(new GroupingMarkerSkin(this));
      public boolean isOpen() {
      return open.get();
      public void setOpen(boolean flag) {
      open.set(flag);
      public int getDepth() {
      return depth.get();
      public void setDepth(int depth) {
      this.depth.set(depth);
    package org.notebook;
    import javafx.scene.Group;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.FillRule;
    import javafx.scene.shape.LineTo;
    import javafx.scene.shape.MoveTo;
    import javafx.scene.shape.Path;
    import com.sun.javafx.scene.control.skin.SkinBase;
    * The skin draws some simple lines on the right hand side of
    * the control. The lines reflect whether the control is considered
    * open or closed. Since there is no content, there is no
    * content handling code needed.
    public class GroupingMarkerSkin extends SkinBase<GroupingMarker, GroupingMarkerBehavior> {
      GroupingMarker control;
      Color lineColor;
      double shelfLength;
      double thickness;
      private Group lines;
      public GroupingMarkerSkin(GroupingMarker control) {
      super(control, new GroupingMarkerBehavior(control));
      this.control = control;
      lineColor = Color.BLUE;
      shelfLength = 5.0;
      thickness = 1.0;
      init();
      * Attached listeners to the properties in the control.
      protected void init() {
      registerChangeListener(control.openProperty(), "OPEN");
      registerChangeListener(control.depthProperty(), "DEPTH");
      lines = new Group();
      repaint();
      @Override
      protected void handleControlPropertyChanged(String arg0) {
      super.handleControlPropertyChanged(arg0);
        @Override public final GroupingMarker getSkinnable() {
            return control;
        @Override public final void dispose() {
        super.dispose();
            control = null;
        @Override
        protected double computePrefHeight(double arg0) {
        System.out.println("ph: " + arg0);
        return super.computePrefHeight(arg0);
        @Override
        protected double computePrefWidth(double arg0) {
        System.out.println("pw: " + arg0);
        return super.computePrefWidth(40.0);
         * Call this if a property changes that affects the visible
         * control.
        public void repaint() {
        requestLayout();
        @Override
        protected void layoutChildren() {
        if(control.getScene() != null) {
        drawLines();
        getChildren().setAll(lines);
        super.layoutChildren();
        protected void drawLines() {
        lines.getChildren().clear();
        System.out.println("bounds local: " + control.getBoundsInLocal());
        System.out.println("bounds parent: " + control.getBoundsInParent());
        System.out.println("bounds layout: " + control.getLayoutBounds());
        System.out.println("pref wxh: " + control.getPrefWidth() + "x" + control.getPrefHeight());
        double width = Math.max(0, 20.0 - 2 * 2.0);
        double height = control.getPrefHeight() - 4.0;
        height = Math.max(0, control.getBoundsInLocal().getHeight()-4.0);
        System.out.println("w: " + width + ", h: " + height);
        double margin = 4.0;
        final Path VERTICAL = new Path();
        VERTICAL.setFillRule(FillRule.EVEN_ODD);
        VERTICAL.getElements().add(new MoveTo(margin, margin)); // start
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, margin)); // top horz line
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, height - margin)); // vert line
        if(control.isOpen()) {
        VERTICAL.getElements().add(new LineTo(margin, height - margin)); // bottom horz line
        } else {
        VERTICAL.getElements().add(new LineTo(margin, height-margin-4.0));
        //VERTICAL.getElements().add(new ClosePath());
        VERTICAL.setStrokeWidth(thickness);
        VERTICAL.setStroke(lineColor);
        lines.getChildren().addAll(VERTICAL);
        lines.setCache(true);
    package org.notebook;
    import com.sun.javafx.scene.control.behavior.BehaviorBase;
    public class GroupingMarkerBehavior extends BehaviorBase<GroupingMarker> {
      public GroupingMarkerBehavior(final GroupingMarker control) {
      super(control);
    package org.notebook;
    import javafx.application.Application;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextArea;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class TestGroupingMarker extends Application {
      public static void main(String args[]) {
      launch(TestGroupingMarker.class, args);
      @Override
      public void start(Stage stage) throws Exception {
      VBox vbox = new VBox();
      BorderPane p = new BorderPane();
      VBox first = new VBox();
      first.getChildren().add(makeEntry("In[1]=", "my label", 200.0, true));
      first.getChildren().add(makeEntry("Out[1]=", "the output!", 200.0, true));
      p.setCenter(first);
      p.setRight(new GroupingMarker(true));
      vbox.getChildren().add(p);
      vbox.getChildren().add(makeEntry("In[2]=", "my label 2", 100.0, false));
      Scene scene = new Scene(vbox,500,700);
      scene.getStylesheets().add(TestGroupingMarker.class.getResource("main.css").toExternalForm());
      stage.setScene(scene);
      stage.setTitle("GroupingMarker test");
      stage.show();
      protected Node makeEntry(String io, String text, double height, boolean open) {
      BorderPane pane2 = new BorderPane();
      pane2.setSnapToPixel(true);
      Label label2 = new Label(io);
      label2.getStyleClass().add("io-label");
      pane2.setLeft(label2);
      TextArea area2 = new TextArea(text);
      area2.getStyleClass().add("io-content");
      area2.setPrefHeight(height);
      pane2.setCenter(area2);
      GroupingMarker marker2 = new GroupingMarker();
      marker2.setOpen(open);
      pane2.setRight(marker2);
      return pane2;

    The test interfaces are already defined for you - the 3rd party session bean remote/local interfaces.
    It is pretty trivial to create implementations of those interfaces to return the test data from your XML files.
    There are a number of ways to handle the switching, if you have used the service locator pattern, then I would personally slot the logic in to the service locator, to either look up the 3rd party bean or return a POJO test implementation of the interface according to configuration.
    Without the service locator, you are forced to do a little more work, you will have to implement your own test session beans to the same interfaces as the 3rd party session beans.
    You can then either deploy them instead of the 3rd party beans or you can deploy both the test and the 3rd party beans under different JNDI names,and use ejb-ref tags and allow you to switch between test and real versions by changing the ejb-link value.
    Hope this helps.
    Bob B.

  • Can I dynamically control the position of objects on a printed page?

    Forum:
    Oracle Developer Reports Builder (10g)
    I have a need to control the position of printing on a peel off label in my report. I currently am forced to represent a complex object three times , i.e. LEFT, RIGHT and CENTER, printing whichever is configured in the PRINTER_INFO table of my schema. I am printing to over 200 printers and they all print the location differently.
    Also, since printing through the DESTYPE=PRINTER ,vs printing from a displayed PDF have different results, I would have to refresent these three objects yet again, sligh lower and to the right to support label printing from a PDF.
    I have seen where Word Macro can dynamically position this same object by using xy coordinates.
    Does anyone know how to do something like this in Oracle Reports.
    Thx in advance,
    Gary
    [email protected]

    Dora,
    Yes, that is exactly what I am doing. As I mentioned, the label object has many elements and they all sit on top of each other when doing the layout. This by itself is messy to work with.
    This has been workable so far with regard to generating output to the several hundred printers of different models and firmware.
    The output is rarely if ever centered in both x & y axis. We have only been able to use in production by relaxing the rules so that the text only need be within the boundaries of the label.
    I also found that to support printing from the PDF view that the text positioning is well out of the label boundaries. I would be forced to create an additional three complex objects in the 'Y' axis. Needless to say this is quite messy.
    I do appreciate your input, but your recommendation does not meet the requirements of my project.
    I don't believe that Oracle Reports can do this task. I am thinking that BI Publisher can, and am doing "due diligence" before recommending a new reporting platform.
    Thx again.
    Gary

  • How to add a fade effect to the Application object ?

    Hy,
    i want to add a fade effect to the Application object, but my code does not work, can you take a look please:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"                              
                                usePreloader="false"
                                mouseDown="stage.nativewindow.startMove()"
                                layout="absolute"
                                width="304"
                                height="527"
                                alpha="0"
                                creationComplete="init()">
            <mx:Script>
                    <![CDATA[
                            private function init():void
                                    application.setStyle("showEffect",fade)        
                    ]]>
            </mx:Script>
            <mx:Fade id="fade" duration="1000" />
    </mx:Application>
    Thanks

    Hi,
    Here is an example of how to add effect to a button: http://livedocs.adobe.com/flex/3/html/help.html?content=behaviors_06.html

Maybe you are looking for

  • AGPM 4.0 SP2 Configure AGPM Server connection

    Hi, I've got some problems configuring AGPM 4.0 SP2 in my environment. In my Test-Lab I have a Windows server 2008 R2 Domain and 2 Windows 2012 R2 Server. One Windows 2012 R2 Server is AGPM Server and the other one is the AGPM Client. After installat

  • Movie File Stops Downloading

    Maybe someone here can give me some pointers. I bought "The Incredibles" in HD from the iTunes store, but the HD file won't completely download. Most common occurrence: It loads up to about 780 MB, then jumps around a bit in downloaded size, then sta

  • Service item Category and pricing relevance

    In regular sales contexts Item categories can be customized for Pricing relevance and billing relevance.In Service context there are no such settings for Pricing and billing relevance. The only settings for service item category in service context ar

  • Abstract class needs to be observed

    Hi! Thank you for reading my post! I have been programming seriously in Java for two years now. But sometimes I still feel like I am a rookie. Here is the situation: Class A is a parent class. Subclasses B, C, and D extend A. Superclass A extends Obs

  • Sync of overdub tracks not to beat of bed tracks.

    When I am overdubbing, the new track is out of sync/beat (late) to the bed tracks in playback mode yet was on time during recording.  I have to shift/nudge the region back into sync/beat.  Very annoying.  I have been experimenting with the "recording