Btitmap Select and unselect (Star Rating)
Hi all
IM creating a function of star rating, I'm trying to do the same thing as the following:
http://supportforums.BlackBerry.com/T5/Java-development/create-rating-field/m-p/331060#M59732
I realized to select the Bitmap field, then evolution of the bitmap image, but how to deselect the bitmap image?
Little Code, example:
Star1 = new BitmapField (StarNotClickedBitmap, BitmapField.FOCUSABLE) {}
protected boolean navigationClick (int status, int time) {}
Bitmap StarClicked = Bitmap.getBitmapResource ("rating_star_focus.png");
Star1.setBitmap (StarClicked);
Returns true;
}
};
I tried to use the following text:
Star5 = new BitmapField (StarNotClicked, BitmapField.FOCUSABLE) {}
protected boolean navigationClick (int status, int time) {}
Bitmap StarClicked = Bitmap.getBitmapResource ("rating_star_focus.png");
Star5.setBitmap (StarClicked);
Returns true;
}
protected boolean navigationUnclick (int arg0, int arg1) {}
TODO self-generating method stub
Bitmap StarNotClicked = Bitmap.getBitmapResource ("rating_star.png");
fieldChangeNotify (0);
Star5.setBitmap (StarNotClicked);
Return super.navigationUnclick (arg0, arg1);
}
};
But it does not work properly, I write the code in the wrong order or am I completely off base, please help me!
Thank you
http://supportforums.BlackBerry.com/T5/Java-development/rating-stars-like-in-Android/m-p/1942559
Tags: BlackBerry Developers
Similar Questions
-
Unable to choose 'clear history' - it is greyed out and unselectable
I can't select 'clear history' - it is greyed out and unselectable on my laptop. Only, it happens on my laptop, but shows my story for many months in the past and includes the history both of my desktops, which is supposed to be cleared frequently. Sync is enabled on all devices, and history does not appear on desktop computers. I am able to clear the history on desktop browsers, but not the laptop. Computer laptop operating system: Windows 7 Home Premium I also have IE, Chrome, Safari installed.
Make sure that you are not Firefox running in permanent private browsing mode (don't remember history).
- Tools > Options > privacy > Firefox will be: "use the custom settings for history".
- : Uncheck the [] "always use the private browsing mode.
You can check for problems with the database places.sqlite file in the Firefox profile folder.
-
Hello, I have an exam it is not the image of the stars and he goes the complete coast tends to zero.
I see my other reviews and what is the best journal charges a «star - 10.gif» image
In others, when they are only 4 stars filling, it loads 'star - 8.gif.
the review that does not load the side, I see in the properties it wants to load a 'star - 67.gif', that's why I have the 0 in my application.
I send several forms to appworld support wihout response...
In appworld when you see an app, it shows not a 5-star rating... but in my app, I see more than 5! that all you can see in the appworld.
I'm app: myklls
I have come into contact with the customer that load of this review, and he told me that when it has been downloaded review, the browser crash and that the why it appear like this, the review is great, but side won't...
Please fix appworld!
This should now be corrected - denied comments cease to apply to the overall assessment of the application, so I went ahead and refused the exam-67.
-
The star rating does not appear on the image in the film after being assigned in the library or development module. He uses appears before the last update. How can it be fixed?
Hi annl98929431,
Greetings.
Make slide film and make it appear larger than it is now.
Concerning
Rohit
-
Going crazy trying to select and move multiple points of tempo
I tried to move a whole bunch of tempo of a bar points to a spot 4 bars later in my project. First time this... For the life of me I can't figure out what I'm doing wrong as I * try * follow the steps here: Logic Pro X: move and copy points of tempo
Here's a quick screencast to choose me (while holding the CONTROL key) and then drag (hold down CTRL key):
(The editor let me not insert a video this time so I downloaded on YouTube instead.)
I tried dragging dragging the first point of tempo, dragging from the last point of tempo, a place randomly in the Middle the selected points. I also tried now the shift and CONTROL simultaneously select and drag when he did not work on the other hand, only because the instructions mentioned the option to SHIFT + click in the selection. Finally, I tried the same thing while now the SHIFT key instead of CONTROL (don't wait not that it works of course because the instructions didn't say to do, but I tried the way described several times and she didn't).
Get these points of tempo settles is the last detail in a huge song that ended the case
There must be some small detail that I forgot the instructions. Any suggestions? Thanks in advance!
Use the smudge tool to enter the automation of tempo and move it left or right...
-
A small 'feature '...
Using Thunderbird 31.3.0 on WIndows 7 and Windows 8 (2 different machines).
In the "Write" e-mail window when you try to select addresses from the address book, the address list is not sorted. Type the first letter of the address, the unsorted list is presented, on the typing of the second letter, 2 letters are disaplayed in red. If you scroll the list to find the desired address, it can be selected and the email is sent ok (it shows just the address in red).
Thank you.Keep typing. Search now uses 'contains' while in the past he has used "begins by".
Red is a bug and no real consequence as long as you are careful to accept such address offered.
More concern with the current version is that it would have been is not always check the address you have chosen. I don't know what triggers what I was not able to replicate.
-
How to select and move more than one bookmark at a time?
Shift + click selects multiple items that are next to each other in a list, because the items open in firefox before that happens.Glad it worked for you. Thanks for posting back.
-
On Mac Book Pro, how can I select and delete spam with it opening?
On Mac Book Pro, how can I select and delete spam with on their opening?
Go to the junk mail folder in the Mail sidebar. Place the cursor in the message window and press command + A to select all of the messages in the window. Click on the trash in the toolbar or CTRL - RIGHT click and select the Recycle Bin on the shortcut menu.
-
Equium M50 bypasses sometimes screen selection and password of account completely
Sometimes when I start my Equium M50, it goes to the screen selection and password of the user account. Other times he who circumvents completely and go directly to the desktop.
Hello
Did you mean the user Windows XP normally account?
Have you set the password to your account?I put t know if it helps but I recommend to delete your old user account and create a new password.
Windows XP administrator account (versions Home and Professional).
By default, it doesn't have a defined password.
In order to avoid serious security problems, it is best to set a password for this account on your computer.
To do this, follow these instructions:1. open the start menu, and then click Control Panel.
2. in Control Panel, open the icon user accounts.
3. the screen user accounts lists several accounts that are present on your machine. Note that you will have probably a Director and another (that you named when you configure your computer to start). Select the administrator account.
4. in the administrator account settings screen, click the "Create a password" link.
5. in the password creation window, fill in the blanks required. When finished, press to create the password.
6 you may be asked if you want to make this private account files. Click on either YES or NO (depending on your preferences), then click on finish
7. it must be returned to the window user accounts. Close this window, and then restart your computer normally.NOTE: Make sure you add passwords on ALL accounts on your computer
-
How to incorporate the timestamp and file name automatically select and save the file dialog?
Hello
I try to incorporate the name of the file that is the registration of the end user with the timestamp in the selected and save file dialog box. Can you help me?
Thank you
Hi Mike227,
I couldn't find a way to immediately make the bat. I guess you need to mess with ActiveX to do. I found an msdn page that could help with this.
Have you considered simply concatenating the name of the file and the time stamp with a path of the file and save the file when you create it, without inviting the user?
-
I am unable to send attachments in outlook express. HTML is selected and is therefore 'send pictures' recipient receives the text but not images?
All security settings seem fine, an idea?Some messages do not conform to the standards of the Internet in the sense that they cannot be returned intact by their transmission. The way around this is to use Message | Until the attachment, then they will be properly transmitted, since they will be attached.
Steve
-
Original title: copy function
The copy function blocks computer after an item is selected, and the computer is responsible for copy. It does not matter what size is the copy area. It usually requires a reboot hard to use the system.
I tried to follow some of the instructions in a full Clipboard and unfortunately that is not the forms of the English spoken by them.
Any help would be greatly appreciated.
Denver
d2n1cart@hotmail'com
Hello
We are pleased to know that the problem is solved. Let us know if face you any problem with Windows in the future.
-
Original title: after upgrading to Windows 7 from Vista cursor selects and/or open things without a press of button or clicks simply by being put near something selectable. Help, please!
Recently upgraded my gateway from Vista to Windows 7. Now the cursor selects often things it is nearby or pass and the computer was faster at the beginning but now it can be slow to load pages, etc. It is terrible and has caused at least one major and made problems a horror to use my laptop.
WTF?
Hello damatriarch06,
You are welcome. It is what we are trying to do... help people! Thanks for letting me know that the problem is solved.
Kind regards
BearPup
-
Impossible to select and move the letters while playing 'Word with friends' through facebook
Original title: play games
During playback "words with friends" through face book... I can't select and move the letters on the touch screen without the screen, scrolling up and down.
I need the touch screen to allow the movement of the letters c A C H, etc. on the game board without scrolling of the image of the screen!
Several of my Face book games does not load completely without hanging... both Adobe Flash player and Windows are also perfectly up-to-date.
Kind regardsHi Stephanie,
Looks like you are unable to play words with friends on Facebook and also problems with other facebook games.Since you are faced with a design problem with the play on words with friends on facebook, I suggest you to contact the administrator of the game to get more information about the compatibility of the game in Windows RT. You can also ask if they provide latest app for the particular game.
support.Zynga.com/Home/Words-with-friendsI would also ask you to contact Facebook to get information about other games:Hope this information helps. -
Hi all
We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.
We created a table ADF programming related to a SortableModel created programmatically to a bean.
We need to select and highlight the first row in the table just after making it to retrieve data based on the first line.
We tried the based on the following thread: How to call the bean support just after JSFF / page fragment loads? and a few other posts online, but it does not work very well.
W has created a hidden text in the bottom of the JSF model as follows:
< af:table varStatus = "rowStat" Summary = "table" value = "#{pageFlowScope.crudBean.dynamicTable.collectionModel} '"
Rows = "#{pageFlowScope.crudBean.dynamicTable.collectionModel.RowCount} '"
contentDelivery = 'immediate' var = 'row' rendered = 'true '.
Binding = "#{backingBeanScope.crudBackingBean.tasksTable} '"
selectionListener = "#{backingBeanScope.crudBackingBean.customListener} '"
"rowSelection ="single"id ="t1"partialTriggers =": pt_gr2 "columnStretching =" column: clmn0 ">
< af:forEach items = "#{pageFlowScope.crudBean.dynamicTable.columnNames}" var = 'name' varStatus 'vs' = > "
< af:column sortable = "true" sortProperty rowHeader = "#{name}" = "no style" headerText = "#{pageFlowScope.crudBean.dynamicTable.columnLabel [name]}" "
inlineStyle = "width: 100px;" ID = "clmn$ {vs.index}" >
< af:activeOutputText value = "#{row [name]}" id = "aot1" / >
< / af:column >
< / af:forEach >
< / af:table >
....
< af:outputText id = "hiddenOutputTextId" visible = "false" value = "#{backingBeanScope.crudBackingBean.afterPageLoad} '"
Binding="#{backingBeanScope.crudBackingBean.hiddenOutputText}"/ >
And we have added the code to the bean to support below:
public String getAfterPageLoad() {}
If (!.) {AdfFacesContext.getCurrentInstance () .isPostback ()}
selectFirstRowInTasksTable();
}
Return afterPageLoad;
}
public void selectFirstRowInTasksTable() {}
try {}
RKS RowKeySet = new RowKeySetImpl();
RowKeySet rksEmpty = new RowKeySetImpl();
Model CollectionModel = tasksTable.getValue ((CollectionModel));
ROWCOUNT int = model.getRowCount ();
If (rowcount > 0) {}
model.setRowIndex (0);
Key of the object = model.getRowKey ();
RKS. Add (Key);
tasksTable.setSelectedRowKeys (rks);
SelectionEvent selectEvent =
new SelectionEvent (tasksTable.getSelectedRowKeys (), rks, tasksTable);
selectEvent.queue ();
customListener (selectEvent); / / to retrieve data
AdfFacesContext.getCurrentInstance () .addPartialTarget (tasksTable);
}
} catch (Exception e) {}
}
}
I think that () selectEvent.queue; should work even without calling the customerListener, but it is not working in all cases.
What is the problem in my code?
Have you tried to bind property of 'selectedRowKeys' to selection configuration / bean there?
Something like:
public RowKeySet getSelectedRKS() { if (rks == null) { // make first record as selected // create RowKeySet and assign it to rks variable(where rks is variable defined in bean with some scope higher than request scope) } return rks; }
Dario
Maybe you are looking for
-
Sort order of artist - tried and failed
I have tried everything to rectify the problem shown in the attachment. I added some text at the end of the artist and album artist as well as the genre as respective fields, then put them to what they should be. Also, I tried to hide form fields to
-
Portege 4000 - how to enable the WLan using W2k
Hello I installed the driver for Lucent Wireless LAN (6.41.1.87) for this laptop that has W2K. However, I can't control it! I also installed a wireless keyboard shortcut, but there are no instructions on it. This laptop was initially W98SE top, and i
-
with Intel Mobile Pentium M 1.3 GHz. 512 MB PC2100 DDR 40 GB currently W XP
-
How to reinstall LaserJet P1102w USB wireless?
I use Windows XP and have a LaserJet P1102w, who was installed with a USB connection. I have a wireless connection. What I need to first uninstall the USB and then reinstall wireless using the installation disc? If this isn't the case, reinstallat
-
IllegalStateException then add the previously deleted field
Code snippet that fails: /** * Depending on the value of homeScreen.mNumberEditField, the * mHomeScreen.myTextField is removed or re-added after being * removed. Does not work, when re-added an IllegalStateException * is thrown. */class MyEditFieldCh