Questions tagged [modifier]

347 questions
1
vote
1 answer

What's the point of package modifiers?

I don't understand package modifiers (not annotations) like this: public package foo; public class Bar { } Do they have any meaning?
dotjpg3141
  • 305
  • 1
  • 10
1
vote
2 answers

Batch For Loop - removing file from folder names

I have a text file which contains things like: "C:\Folder A\Test.txt" I need to copy certain files and their respective containers to a new directory from a directory, but only those files I specify and their parent folder structures. In my…
PnP
  • 3,133
  • 17
  • 62
  • 95
1
vote
1 answer

JLS: Modifiers before package keyword

I just discovered that several modifiers can be written before the package declaration in a class. It seems all visibility modifiers are allowed as well as field modifiers and all of them multiple times. A declaration might look like this: public…
LastFreeNickname
  • 1,445
  • 10
  • 17
1
vote
4 answers

new modifier in C#

MSDN says: When used as a modifier, the new keyword explicitly hides a member inherited from a base class. When you hide an inherited member, the derived version of the member replaces the base-class version. Although you can hide…
Captain Comic
  • 15,744
  • 43
  • 110
  • 148
1
vote
2 answers

Oracle Datatype Modifier

I need to be able to reconstruct a table column by using the column data in DBA_TAB_COLUMNS, and so to develop this I need to understand what each column refers to. I'm looking to understand what DATA_TYPE_MOD is -- the documentation…
drouleau
  • 35
  • 5
1
vote
3 answers

Why do i require a static modifier and how do i fix it?

My eclipse tells me that i need to use an static modifier but when i do so the hole thing becomes wrong. Here is my code I hope that you can help me and tell me what i did messed up(i got the hint for the inner class from StealthyHunter7): public…
doory
  • 47
  • 7
1
vote
2 answers

is there a workaround for when using a foreach loop to iterate though an arraylist to not make the instance a final?

So when I iterate through my array list of Buttons I'm trying to set all of their onClickedListener()/onFocusChangedListener() but when it comes to modifying of altering the button in the array list it tells me it has to be final. Code: …
Russell Cargill
  • 270
  • 1
  • 6
  • 19
1
vote
2 answers

Protection level (Modifiers) of controls change automaticlly in .Net

My project is on .Net V2.0, some of controls are in public, when change form in design mode this controls changed to private. how can i fix this? thanks. When Modifier changed to private, in Property Tool Box Modifier property not show. many of…
Hajitsu
  • 764
  • 17
  • 49
1
vote
2 answers

MoveByModifier does not reset Andengine

I am trying to make a sprite move using MoveByModifier in Andengine. I want it to keep repeating after the modifier has finished but i am unable to achieve that. Following is my code if anyone can help... MoveByModifier mod1 = new MoveByModifier(20,…
Swati Rawat
  • 1,729
  • 1
  • 19
  • 34
1
vote
0 answers

modifier that creates linear texture wrapping? multiple 3d models

So I have two 3d models with different geometry so when the textures are applied they wrap differently, leaving the textures looking funny and uneven. I was wondering if there was a modifier that could change how the texture is applied?…
WonderBoy
  • 11
  • 3
1
vote
2 answers

Ubuntu shell utility to check if the modifier key is pressed down

Is there any shell utility in Ubuntu which can define if the modifier key (Ctrl, Shift, Super, Alt) is pressed down on the moment when i run it?
KhaimovMR
  • 198
  • 1
  • 2
  • 8
1
vote
1 answer

Remove auto modifier from hotkeys

Is there a way to make a hotkey with a modifier that doesn't automatically put the modifier on the output key? ex: ^a::b -- except, when I hit ctrl+a it just gives me ctrl+b, when I just want ctrl+a to = b. Playing a game which for some reason won't…
ryan
  • 13
  • 3
1
vote
0 answers

State of modifier key resets upon pressing another key using GetKeyState and Keyboard.KeyIsDown

This problem has me stomped. If I hold down the Ctrl Key and press any key, the program successfully records it in the WPF Window.KeyUp event and does as expected: private void Window_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.S &&…
TheThing
  • 160
  • 1
  • 11
1
vote
0 answers

hold down key instead of re-pressing

i'm using this script to change the volume on my computer Q::Send {Volume_Up 6} A::Send {Volume_Down 6} which does almost exactly what i want it to, however i would like to hold down the windows key and press Q or A to raise or lower the volume…
user113630
  • 13
  • 4
1
vote
1 answer

Determine wether the middle mouse button is pressed but not the alt key

I experimented with java.awt.event.MouseEvent and mouse buttons and modifier keys. Finally I came to a point, where I was confused by its behavior. Normally I use SwingUtilities.isLeftMouseButton(...) etc. to detect, which mouse button is pressed…
Michael Dietrich
  • 451
  • 1
  • 5
  • 17