How to put loading circle in dropdown of AutoCompleteTextView? - java

I have AutoCompleteTextView which obtains suggestions from database, so data for dropdown is not available immediately. While data is being received from server, I want to put loading circle in dropdown. How to do that? Please take a look at the image bellow. Thanks!

Related

Java ADF "showPrintablePageBehavior"

I currently have many rows on a table that load as a user scrolls down the page.
There is a showPrintablePageBehavior tag added to create a printable layout page upon clicking that will show the contents on the table. Currently, it only shows 25 or so rows at a time.
I am trying to figure out how to display every row on the new page once the button is clicked.
Is there anything I can add to the <af:showPrintablePageBehavior/> tag or the af:commandToolbarButton tag that could help transfer all the rows over? I know fetchSize may be an option, but I'm not sure how to implement that in.
Thank you!
To my knowledge, the showPrintablePageBehavior will not trigger a server go around. This means that you need to build another page where you fetch all data (set the fetchsize to -1) and print this. This blog https://myadfnotebook.blogspot.com/2011/01/adf-printable-pages-fetching-more-data.html shows how to do this.

Android - How to show list data without scrolling

This is my application require :
- Get data from a server (JSON)
- Show all data report like image above. Data will display as multi page ( do not scroll), use next and previous button to switch
See how I want:
I can get data from server and show data as listview. But I have some problem and need help.
1. How to display data like image I attached. I found some way but seem it is not good
2. How to display data as multi page. I do not know exactly how much data because it depend data on Server, i have to show all data on server. Pages should auto generate depend on data.
Thanks you.
Simplest way to do it would be to create three datasets (let's say arraylists) and keep previous page data in one and current and future in the next one.
Then put an onClickListener that changes the data in listviews and then notify adapter using .notifyDatasetChanged().
This is not an default Android Behavior, So Please do not follow this design. Better to use Load More Functionality :)
You can refer links for that.
ListView to load more items when reached to an end
LoadMore library
Infinite Scroll ListView

Java Swing - PDF Thumbnail Viewer

I'm kinda new in programming and I'm trying to learn everything by myself.
Currently I'm working on a project to sort all my bills and other stuff.
I managed it to updload the bills as PDF files onto a FTP Server.
I'm displaying all outgoing money in a JTable and now I'd like to see a Thumbnail of the PDF
in the right part of my swing GUI after i selected a table row.
Here is what I was thinking of:
Get the selected row via a clickListener, read the bill number, which is the same number the file is called on the FTP (e.g. Number: "20130012" / File: "20130012.pdf").
Download the file from the FTP and save it somewhere temporary?!
and now I need to display the pdf in my grid layout but how =) ? If
it is a picture I could use the Image Icon right? But how do I get
the effect with a pdf?
As soon as I click on the thumbnail, I'd like to open up a pdf reader to see the actual file.
Sorry if this is to less information... just let me know if you need further information.
I'd really appreciate a few answers =)
Thanks
Use a ListSelectionListener to determine which JTable row was clicked and fetch its PDF file. If fetch latency is a problem, use SwingWorker. Once you create a thumbnail image of each page in the selected row's PDF, you can display them in a JList as shown here. Display the selected page at full size in your implementation of ListSelectionListener.

How to style checkbox in custom tag to appear as a seat

I am developing a project in which i'm displaying certain checkboxes to user that he may select a few of them as his/her seat as in movie hall or airplane. I want checkbox to be displayed as chairs or some other image how can i do it. The generation of checkboxes is happening in custom tag (java web project)
Please go thro the HTML from below URL. Here background images are applied to checkboxes.
http://webdesign.maratz.com/lab/fancy-checkboxes-and-radio-buttons/demo.html
You may also use the same logic, have two images. One is for before select, during onclick change the another background image.
If you want to do this then u should write a custom java script code for this purpose.
Create image and then associate the states (true / false) with them and when user perform the select(Click) operation on those image then change the state associated with Image.
Here is a link from where u can learn how to implement this
http://homepage.ntlworld.com/vwphillips/ImageCheckBox/ImageCheckBox.htm

How to set an alert box in Android and is there any API to send data from an app to a URL

I am a new developer. I am facing some problems in my new app.
I have placed three edit boxes. When the user hits the button next to those edit boxes, I
want to set up an alert box if any of the edit boxes is not yet filled up.
When the user hits the button next to those edit boxes after filling up all the data
correctly, it must intents to the new page and at the same time I want to send the data
to a particular URL. Is there any API for this?
I am familiar with normally moving over from one page to the other. I have already asked about sending data to an URL in SO but I didn't get a clear answer.
Please help me in clearing these problems. I am a fresher to this Android and I don't have any colleague in the same field. Please help me.
This is the answer of First Question . Show Alert Dialog
This is the Answer of Second Question . Send Data To Server .
In second answer it only send data to the server and you have to implemented script at the sever side to fetch the data.

Categories

Resources